bug37864.phpt 255 B

123456789101112
  1. --TEST--
  2. Bug #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--
  11. string(0) ""
  12. done.