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.
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php