bug76025.phpt 460 B

123456789101112131415161718
  1. --TEST--
  2. Bug #76025 (Segfault while throwing exception in error_handler)
  3. --FILE--
  4. <?php
  5. function handleError($errno, $errstr, $errfile, $errline) {
  6. $exception = new exception("blah");
  7. throw $exception;
  8. }
  9. set_error_handler('handleError', E_ALL);
  10. $c = $b[$a];
  11. ?>
  12. --EXPECTF--
  13. Fatal error: Uncaught Exception: blah in %sbug76025.php:%d
  14. Stack trace:
  15. #0 %s(%d): handleError(2, 'Undefined varia...', '%s', %d)
  16. #1 {main}
  17. thrown in %sbug76025.php on line %d