mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
add test for file_get_contents() leaking on empty file
This commit is contained in:
parent
438d74568d
commit
f3334c8df3
1 changed files with 9 additions and 0 deletions
9
ext/standard/tests/file/file_get_contents.phpt
Normal file
9
ext/standard/tests/file/file_get_contents.phpt
Normal file
|
@ -0,0 +1,9 @@
|
|||
--TEST--
|
||||
file_get_contents() leaks on empty file
|
||||
--FILE--
|
||||
<?php
|
||||
$tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
|
||||
echo file_get_contents($tmpfname), "done.";
|
||||
?>
|
||||
--EXPECT--
|
||||
done.
|
Loading…
Add table
Add a link
Reference in a new issue