cvs: php-src /ext/standard/tests/file bug37864.phpt
| From: | Hannes Magnusson | Date: | Tue, 20 Jun 2006 19:30:19 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/file bug37864.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-38833@lists.php.net to get a copy of this message | ||
bjori Tue Jun 20 19:30:19 2006 UTC
Added files:
/php-src/ext/standard/tests/file bug37864.phpt
Log:
Test for bug #37864 (file_get_contents() leaks on empty file)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug37864.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/file/bug37864.phpt
+++ php-src/ext/standard/tests/file/bug37864.phpt
--TEST--
Bug #37864 (file_get_contents() leaks on empty file)
--FILE--
<?php
$tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
echo file_get_contents($tmpfname), "done.";
unlink($tmpfname);
?>
--EXPECT--
done.