xref: /PHP-5.5/ext/standard/tests/file/bug37864.phpt (revision b3a334ea)
1--TEST--
2Bug #37864 (file_get_contents() leaks on empty file)
3--FILE--
4<?php
5	$tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
6	var_dump(file_get_contents($tmpfname));
7	echo "done.\n";
8	unlink($tmpfname);
9?>
10--EXPECT--
11string(0) ""
12done.
13