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