bug74725.phpt 442 B

12345678910111213141516
  1. --TEST--
  2. Bug #74725: html_errors=1 breaks unhandled exceptions
  3. --FILE--
  4. <?php
  5. ini_set('display_errors', 1);
  6. ini_set('html_errors', 1);
  7. ini_set('default_charset', "Windows-1251");
  8. throw new Exception("\xF2\xE5\xF1\xF2");
  9. // Note to test reader: this file is in Windows-1251 (vim: `:e ++enc=cp1251`)
  10. ?>
  11. --EXPECTF--
  12. <br />
  13. <b>Fatal error</b>: Uncaught Exception: òåñò in %s:5
  14. Stack trace:
  15. #0 {main}
  16. thrown in <b>%s</b> on line <b>5</b><br />