exceptions_003.phpt 660 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --TEST--
  2. Test breaks on HANDLE_EXCEPTION
  3. --PHPDBG--
  4. b 5
  5. r
  6. s
  7. s
  8. q
  9. --EXPECTF--
  10. [Successful compilation of %s]
  11. prompt> [Breakpoint #0 added at %s:5]
  12. prompt> [Breakpoint #0 at %s:5, hits: 1]
  13. >00005: x();
  14. 00006: } finally {
  15. 00007: print "ok\n";
  16. prompt> >00005: x();
  17. 00006: } finally {
  18. 00007: print "ok\n";
  19. prompt> >00007: print "ok\n";
  20. 00008: }
  21. 00009: } catch (Error $e) {
  22. prompt> ok
  23. >00005: x();
  24. 00006: } finally {
  25. 00007: print "ok\n";
  26. prompt> >00010: print "caught\n";
  27. 00011: }
  28. 00012:
  29. prompt> caught
  30. >00014:
  31. prompt>
  32. --FILE--
  33. <?php
  34. try {
  35. try {
  36. x();
  37. } finally {
  38. print "ok\n";
  39. }
  40. } catch (Error $e) {
  41. print "caught\n";
  42. }
  43. ?>