php-src/ext/standard/tests/file/bug37864.phpt

13 lines
243 B
Plaintext
Raw Normal View History

2006-06-20 19:32:59 +00:00
--TEST--
Bug #37864 (file_get_contents() leaks on empty file)
--FILE--
<?php
2007-11-05 17:43:21 +00:00
$tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
var_dump(file_get_contents($tmpfname));
echo "done.\n";
2006-06-20 19:32:59 +00:00
unlink($tmpfname);
?>
--EXPECT--
string(0) ""
2006-06-20 19:32:59 +00:00
done.