bug64135.phpt 341 B

123456789101112131415161718
  1. --TEST--
  2. Bug #64135 (Exceptions from set_error_handler are not always propagated)
  3. --FILE--
  4. <?php
  5. function exception_error_handler() {
  6. throw new Exception();
  7. }
  8. set_error_handler("exception_error_handler");
  9. try {
  10. $undefined->undefined();
  11. } catch(Throwable $e) {
  12. echo "Exception is thrown";
  13. }
  14. ?>
  15. --EXPECT--
  16. Exception is thrown