summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug37864.phpt
blob: f8743bd5ec09f46c62e445e15e655078bc8421c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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.