Kill debugger's usage of pseudomains and varenv
[hiphop-php.git] / hphp / test / quick / debugger / exception1.php.expectf
blobed9e5130cadc8ad7255e8db87095e680947bac9f
1 Program %s/exception1.php loaded. Type '[r]un' or '[c]ontinue' to go.
2 exception MyException
3 Breakpoint 1 set right before throwing MyException
4 But note that class MyException has yet been loaded.
5 break list
6   1%r\x09%rALWAYS    right before throwing MyException (unbound)
7 run
8 Program %s/exception1.php exited normally.
9 exception NotAnException
10 Breakpoint 2 not set right before throwing NotAnException
11 Because class NotAnException is not an exception.
12 break list
13   1%r\x09%rALWAYS    right before throwing MyException
14 break clear all
15 All breakpoints are cleared.
16 exception Exception
17 Breakpoint 1 set right before throwing Exception
18 break list
19   1%r\x09%rALWAYS    right before throwing Exception
20 @ throw_exception()
21 Breakpoint 1 reached: Throwing Exception at throw_exception() on line 11 of %s/exception1.php
22   10   function throw_exception() {
23   11*    throw new Exception();
24   12   }
26 break clear all
27 All breakpoints are cleared.
28 continue
29 Hit a php exception : exception 'Exception' with message '' in %s/exception1.php:11
30 Stack trace:
31 #0 (1): throw_exception()
32 #1 (1): include()
33 #2 (): include()
34 #3 {main}
35 exception MyException
36 Breakpoint 1 set right before throwing MyException
37 @ throw_myexception()
38 Breakpoint 1 reached: Throwing MyException at throw_myexception() on line 15 of %s/exception1.php
39   14   function throw_myexception() {
40   15*    throw new MyException();
41   16   }
43 break clear all
44 All breakpoints are cleared.
45 continue
46 Hit a php exception : exception 'MyException' with message '' in %s/exception1.php:15
47 Stack trace:
48 #0 (1): throw_myexception()
49 #1 (1): include()
50 #2 (): include()
51 #3 {main}
52 exception error
53 Breakpoint 1 set right after an error
54 @ error_undefined_class()
55 Breakpoint 1 reached: An error occurred at error_undefined_class() on line 19 of %s/exception1.php
56   18   function error_undefined_class() {
57   19*    $x = new NoSuchClass();
58   20   }
60 Error Message: Class undefined: NoSuchClass
61 break clear all
62 All breakpoints are cleared.
63 continue
64 Hit fatal : Class undefined: NoSuchClass
65     #0 at %s/exception1.php:19]
66     #1 error_undefined_class(), called at [:1]
67     #2 include(), called at [:1]
68     #3 include(), called at [:0]
70 exception Exception
71 Breakpoint 1 set right before throwing Exception
72 @ \Outer\throw_exception()
73 Breakpoint 1 reached: Throwing Exception at Outer\throw_exception() on line 29 of %s/exception1.php
74   28   function throw_exception() {
75   29*    throw new \Exception();
76   30   }
78 break clear all
79 All breakpoints are cleared.
80 continue
81 Hit a php exception : exception 'Exception' with message '' in %s/exception1.php:29
82 Stack trace:
83 #0 (1): Outer\throw_exception()
84 #1 (1): include()
85 #2 (): include()
86 #3 {main}
87 exception \Outer\MyException
88 Breakpoint 1 set right before throwing Outer\MyException
89 @ Outer\throw_myexception()
90 Breakpoint 1 reached: Throwing Outer\MyException at Outer\throw_myexception() on line 33 of %s/exception1.php
91   32   function throw_myexception() {
92   33*    throw new MyException();
93   34   }
95 break clear all
96 All breakpoints are cleared.
97 continue
98 Hit a php exception : exception 'Outer\MyException' with message '' in %s/exception1.php:33
99 Stack trace:
100 #0 (1): Outer\throw_myexception()
101 #1 (1): include()
102 #2 (): include()
103 #3 {main}
104 exception error
105 Breakpoint 1 set right after an error
106 @ \Outer\error_undefined_class()
107 Breakpoint 1 reached: An error occurred at Outer\error_undefined_class() on line 37 of %s/exception1.php
108   36   function error_undefined_class() {
109   37*    $x = new NoSuchClass();
110   38   }
112 Error Message: Class undefined: Outer\NoSuchClass
113 break clear all
114 All breakpoints are cleared.
115 continue
116 Hit fatal : Class undefined: Outer\NoSuchClass
117     #0 at %s/exception1.php:37]
118     #1 Outer\error_undefined_class(), called at [:1]
119     #2 include(), called at [:1]
120     #3 include(), called at [:0]
122 exception Exception
123 Breakpoint 1 set right before throwing Exception
124 @ \Outer\Inner\throw_exception()
125 Breakpoint 1 reached: Throwing Exception at Outer\Inner\throw_exception() on line 47 of %s/exception1.php
126   46   function throw_exception() {
127   47*    throw new \Exception();
128   48   }
130 break clear all
131 All breakpoints are cleared.
132 continue
133 Hit a php exception : exception 'Exception' with message '' in %s/exception1.php:47
134 Stack trace:
135 #0 (1): Outer\Inner\throw_exception()
136 #1 (1): include()
137 #2 (): include()
138 #3 {main}
139 exception Outer\Inner\MyException
140 Breakpoint 1 set right before throwing Outer\Inner\MyException
141 @ Outer\Inner\throw_myexception()
142 Breakpoint 1 reached: Throwing Outer\Inner\MyException at Outer\Inner\throw_myexception() on line 51 of %s/exception1.php
143   50   function throw_myexception() {
144   51*    throw new MyException();
145   52   }
147 break clear all
148 All breakpoints are cleared.
149 continue
150 Hit a php exception : exception 'Outer\Inner\MyException' with message '' in %s/exception1.php:51
151 Stack trace:
152 #0 (1): Outer\Inner\throw_myexception()
153 #1 (1): include()
154 #2 (): include()
155 #3 {main}
156 exception error
157 Breakpoint 1 set right after an error
158 @ \Outer\Inner\error_undefined_class()
159 Breakpoint 1 reached: An error occurred at Outer\Inner\error_undefined_class() on line 55 of %s/exception1.php
160   54   function error_undefined_class() {
161   55*    $x = new NoSuchClass();
162   56   }
164 Error Message: Class undefined: Outer\Inner\NoSuchClass
165 break clear all
166 All breakpoints are cleared.
167 continue
168 Hit fatal : Class undefined: Outer\Inner\NoSuchClass
169     #0 at %s/exception1.php:55]
170     #1 Outer\Inner\error_undefined_class(), called at [:1]
171     #2 include(), called at [:1]
172     #3 include(), called at [:0]
174 quit