bug64135.phpt 338 B

1234567891011121314151617
  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. --EXPECT--
  15. Exception is thrown