mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
13 lines
243 B
PHP
13 lines
243 B
PHP
--TEST--
|
|
Bug #37864 (file_get_contents() leaks on empty file)
|
|
--FILE--
|
|
<?php
|
|
$tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
|
|
var_dump(file_get_contents($tmpfname));
|
|
echo "done.\n";
|
|
unlink($tmpfname);
|
|
?>
|
|
--EXPECT--
|
|
string(0) ""
|
|
done.
|