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