xref: /PHP-7.3/ext/standard/tests/file/bug61961.phpt (revision b746e698)
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==DONE==
12--EXPECT--
13string(0) ""
14==DONE==
15