bug51394.phpt 468 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #51394 (Error line reported incorrectly if error handler throws an exception)
  3. --INI--
  4. error_reporting=-1
  5. --FILE--
  6. <?php
  7. function eh()
  8. {
  9. throw new Exception("error!");
  10. return false;
  11. }
  12. set_error_handler("eh");
  13. $a = $empty($b);
  14. --EXPECTF--
  15. Fatal error: Uncaught exception 'Exception' with message 'error!' in %sbug51394.php:%d
  16. Stack trace:
  17. #0 %sbug51394.php(%d): eh(8, 'Undefined varia%s', '%s', %d, Array)
  18. #1 {main}
  19. thrown in %sbug51394.php on line %d