1--TEST-- 2Stepping with exceptions must not be stuck at CATCH 3--INI-- 4opcache.enable=0 5--PHPDBG-- 6b ZEND_THROW 7r 8s 9 10 11 12 13 14 15q 16--EXPECTF-- 17[Successful compilation of %s] 18prompt> [Breakpoint #0 added at ZEND_THROW] 19prompt> [Breakpoint #0 in ZEND_THROW at %s:4, hits: 1] 20>00004: throw new Exception; 21 00005: } 22 00006: 23prompt> >00004: throw new Exception; 24 00005: } 25 00006: 26prompt> >00008: foo(); 27 00009: } catch (Exception $e) { 28 00010: echo "ok\n"; 29prompt> >00010: echo "ok\n"; 30 00011: } finally { 31 00012: echo " ... ok\n"; 32prompt> ok 33>00011: } finally { 34 00012: echo " ... ok\n"; 35 00013: } 36prompt> >00012: echo " ... ok\n"; 37 00013: } 38 00014: 39prompt> ... ok 40>00011: } finally { 41 00012: echo " ... ok\n"; 42 00013: } 43prompt> >00014: 44prompt> 45--FILE-- 46<?php 47 48function foo() { 49 throw new Exception; 50} 51 52try { 53 foo(); 54} catch (Exception $e) { 55 echo "ok\n"; 56} finally { 57 echo " ... ok\n"; 58} 59