xref: /PHP-8.4/ext/standard/tests/file/bug37864.phpt (revision f8d79582)
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