mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-12 03:30:50 +00:00
Test for bug #37864 (file_get_contents() leaks on empty file)
This commit is contained in:
1 parent
3d0e1456e4
commit
2c87f890bc
1 file changed
+10
@@ -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.
|
||||
Reference in new issue
Block a user