bug23279.phpt 310 B

12345678910111213141516
  1. --TEST--
  2. Bug #23279 (exception handler stops after first function call)
  3. --FILE--
  4. <?php
  5. ob_start();
  6. set_exception_handler('redirect_on_error');
  7. echo "Hello World\n";
  8. throw new Exception;
  9. function redirect_on_error($e) {
  10. ob_end_clean();
  11. echo "Goodbye Cruel World\n";
  12. }
  13. ?>
  14. --EXPECT--
  15. Goodbye Cruel World