cvs: php-src(PHP_5_2) /ext/standard/tests/file file_get_contents.phpt
| From: | Hannes Magnusson | Date: | Tue, 20 Jun 2006 18:48:56 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/standard/tests/file file_get_contents.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-38827@lists.php.net to get a copy of this message | ||
bjori Tue Jun 20 18:48:56 2006 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/file file_get_contents.phpt
Log:
MFH: 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.