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:
10
ext/standard/tests/file/bug37864.phpt
Normal file
10
ext/standard/tests/file/bug37864.phpt
Normal 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.
|
||||
Reference in New Issue
Block a user