bug75236.phpt 481 B

123456789101112131415161718
  1. --TEST--
  2. Bug #75236: infinite loop when printing an error-message
  3. --FILE--
  4. <?php
  5. ini_set('html_errors', true);
  6. ini_set('default_charset', 'ISO-8859-2');
  7. printf ("before getfilecontent\n");
  8. file_get_contents ('no/suchfile');
  9. printf ("after getfilecontent\n");
  10. ?>
  11. --EXPECTF--
  12. before getfilecontent
  13. <br />
  14. <b>Warning</b>: file_get_contents(no/suchfile): Failed to open stream: No such file or directory in <b>%s</b> on line <b>7</b><br />
  15. after getfilecontent