jump17.phpt 246 B

12345678910111213141516171819202122
  1. --TEST--
  2. jump 17: goto into try/catch with finally
  3. --FILE--
  4. <?php
  5. goto b;
  6. try {
  7. echo "1";
  8. a:
  9. echo "2";
  10. throw new Exception();
  11. } catch (Exception $e) {
  12. echo "3";
  13. b:
  14. echo "4";
  15. } finally {
  16. echo "5";
  17. c:
  18. echo "6";
  19. }
  20. echo "7\n";
  21. --EXPECT--
  22. 4567