1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00

Test for bug #37864 (file_get_contents() leaks on empty file)

This commit is contained in:
Hannes Magnusson
2006-06-20 19:30:19 +00:00
parent 3d0e1456e4
commit 2c87f890bc

View File

@@ -0,0 +1,10 @@
--TEST--
Bug #37864 (file_get_contents() leaks on empty file)
--FILE--
<?php
$tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
echo file_get_contents($tmpfname), "done.";
unlink($tmpfname);
?>
--EXPECT--
done.