![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #61961 (file_get_content leaks when access empty file with max length) 3: --FILE-- 4: <?php 5: $tmp_empty_file = __FILE__ . ".tmp"; 6: file_put_contents($tmp_empty_file, ""); 7: 8: var_dump(file_get_contents($tmp_empty_file, NULL, NULL, NULL, 10)); 9: unlink($tmp_empty_file); 10: ?> 11: ==DONE== 12: --EXPECT-- 13: string(0) "" 14: ==DONE==