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

13 lines
243 B
Plaintext
Raw Normal View History

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