bug61961.phpt 295 B

123456789101112
  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. var_dump(file_get_contents($tmp_empty_file, false, NULL, 0, 10));
  8. unlink($tmp_empty_file);
  9. ?>
  10. --EXPECT--
  11. string(0) ""