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