xref: /PHP-8.0/ext/standard/tests/file/bug61961.phpt (revision a555cc0b)
1--TEST--
2Bug #61961 (file_get_content leaks when access empty file with max length)
3--FILE--
4<?php
5$tmp_empty_file = __FILE__ . ".tmp";
6file_put_contents($tmp_empty_file, "");
7
8var_dump(file_get_contents($tmp_empty_file, NULL, NULL, NULL, 10));
9unlink($tmp_empty_file);
10?>
11--EXPECT--
12string(0) ""
13