1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: ba1562ca8fe2fe48c40bc52d10545aa989afd86c */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
5 ZEND_END_ARG_INFO()
6
7 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Throwable_getCode, 0, 0, 0)
8 ZEND_END_ARG_INFO()
9
10 #define arginfo_class_Throwable_getFile arginfo_class_Throwable_getMessage
11
12 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getLine, 0, 0, IS_LONG, 0)
13 ZEND_END_ARG_INFO()
14
15 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getTrace, 0, 0, IS_ARRAY, 0)
16 ZEND_END_ARG_INFO()
17
18 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Throwable_getPrevious, 0, 0, Throwable, 1)
19 ZEND_END_ARG_INFO()
20
21 #define arginfo_class_Throwable_getTraceAsString arginfo_class_Throwable_getMessage
22
23 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Exception___clone, 0, 0, IS_VOID, 0)
24 ZEND_END_ARG_INFO()
25
26 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Exception___construct, 0, 0, 0)
27 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, message, IS_STRING, 0, "\"\"")
28 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_LONG, 0, "0")
29 ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, previous, Throwable, 1, "null")
30 ZEND_END_ARG_INFO()
31
32 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Exception___wakeup, 0, 0, IS_VOID, 0)
33 ZEND_END_ARG_INFO()
34
35 #define arginfo_class_Exception_getMessage arginfo_class_Throwable_getMessage
36
37 #define arginfo_class_Exception_getCode arginfo_class_Throwable_getCode
38
39 #define arginfo_class_Exception_getFile arginfo_class_Throwable_getMessage
40
41 #define arginfo_class_Exception_getLine arginfo_class_Throwable_getLine
42
43 #define arginfo_class_Exception_getTrace arginfo_class_Throwable_getTrace
44
45 #define arginfo_class_Exception_getPrevious arginfo_class_Throwable_getPrevious
46
47 #define arginfo_class_Exception_getTraceAsString arginfo_class_Throwable_getMessage
48
49 #define arginfo_class_Exception___toString arginfo_class_Throwable_getMessage
50
51 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ErrorException___construct, 0, 0, 0)
52 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, message, IS_STRING, 0, "\"\"")
53 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_LONG, 0, "0")
54 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, severity, IS_LONG, 0, "E_ERROR")
55 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null")
56 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, line, IS_LONG, 1, "null")
57 ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, previous, Throwable, 1, "null")
58 ZEND_END_ARG_INFO()
59
60 #define arginfo_class_ErrorException_getSeverity arginfo_class_Throwable_getLine
61
62 #define arginfo_class_Error___clone arginfo_class_Exception___clone
63
64 #define arginfo_class_Error___construct arginfo_class_Exception___construct
65
66 #define arginfo_class_Error___wakeup arginfo_class_Exception___wakeup
67
68 #define arginfo_class_Error_getMessage arginfo_class_Throwable_getMessage
69
70 #define arginfo_class_Error_getCode arginfo_class_Throwable_getCode
71
72 #define arginfo_class_Error_getFile arginfo_class_Throwable_getMessage
73
74 #define arginfo_class_Error_getLine arginfo_class_Throwable_getLine
75
76 #define arginfo_class_Error_getTrace arginfo_class_Throwable_getTrace
77
78 #define arginfo_class_Error_getPrevious arginfo_class_Throwable_getPrevious
79
80 #define arginfo_class_Error_getTraceAsString arginfo_class_Throwable_getMessage
81
82 #define arginfo_class_Error___toString arginfo_class_Throwable_getMessage
83
84 ZEND_METHOD(Exception, __clone);
85 ZEND_METHOD(Exception, __construct);
86 ZEND_METHOD(Exception, __wakeup);
87 ZEND_METHOD(Exception, getMessage);
88 ZEND_METHOD(Exception, getCode);
89 ZEND_METHOD(Exception, getFile);
90 ZEND_METHOD(Exception, getLine);
91 ZEND_METHOD(Exception, getTrace);
92 ZEND_METHOD(Exception, getPrevious);
93 ZEND_METHOD(Exception, getTraceAsString);
94 ZEND_METHOD(Exception, __toString);
95 ZEND_METHOD(ErrorException, __construct);
96 ZEND_METHOD(ErrorException, getSeverity);
97
98 static const zend_function_entry class_Throwable_methods[] = {
99 ZEND_RAW_FENTRY("getMessage", NULL, arginfo_class_Throwable_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
100 ZEND_RAW_FENTRY("getCode", NULL, arginfo_class_Throwable_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
101 ZEND_RAW_FENTRY("getFile", NULL, arginfo_class_Throwable_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
102 ZEND_RAW_FENTRY("getLine", NULL, arginfo_class_Throwable_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
103 ZEND_RAW_FENTRY("getTrace", NULL, arginfo_class_Throwable_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
104 ZEND_RAW_FENTRY("getPrevious", NULL, arginfo_class_Throwable_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
105 ZEND_RAW_FENTRY("getTraceAsString", NULL, arginfo_class_Throwable_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
106 ZEND_FE_END
107 };
108
109 static const zend_function_entry class_Exception_methods[] = {
110 ZEND_ME(Exception, __clone, arginfo_class_Exception___clone, ZEND_ACC_PRIVATE)
111 ZEND_ME(Exception, __construct, arginfo_class_Exception___construct, ZEND_ACC_PUBLIC)
112 ZEND_ME(Exception, __wakeup, arginfo_class_Exception___wakeup, ZEND_ACC_PUBLIC)
113 ZEND_ME(Exception, getMessage, arginfo_class_Exception_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
114 ZEND_ME(Exception, getCode, arginfo_class_Exception_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
115 ZEND_ME(Exception, getFile, arginfo_class_Exception_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
116 ZEND_ME(Exception, getLine, arginfo_class_Exception_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
117 ZEND_ME(Exception, getTrace, arginfo_class_Exception_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
118 ZEND_ME(Exception, getPrevious, arginfo_class_Exception_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
119 ZEND_ME(Exception, getTraceAsString, arginfo_class_Exception_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
120 ZEND_ME(Exception, __toString, arginfo_class_Exception___toString, ZEND_ACC_PUBLIC)
121 ZEND_FE_END
122 };
123
124 static const zend_function_entry class_ErrorException_methods[] = {
125 ZEND_ME(ErrorException, __construct, arginfo_class_ErrorException___construct, ZEND_ACC_PUBLIC)
126 ZEND_ME(ErrorException, getSeverity, arginfo_class_ErrorException_getSeverity, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
127 ZEND_FE_END
128 };
129
130 static const zend_function_entry class_Error_methods[] = {
131 ZEND_RAW_FENTRY("__clone", zim_Exception___clone, arginfo_class_Error___clone, ZEND_ACC_PRIVATE, NULL, NULL)
132 ZEND_RAW_FENTRY("__construct", zim_Exception___construct, arginfo_class_Error___construct, ZEND_ACC_PUBLIC, NULL, NULL)
133 ZEND_RAW_FENTRY("__wakeup", zim_Exception___wakeup, arginfo_class_Error___wakeup, ZEND_ACC_PUBLIC, NULL, NULL)
134 ZEND_RAW_FENTRY("getMessage", zim_Exception_getMessage, arginfo_class_Error_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, NULL)
135 ZEND_RAW_FENTRY("getCode", zim_Exception_getCode, arginfo_class_Error_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, NULL)
136 ZEND_RAW_FENTRY("getFile", zim_Exception_getFile, arginfo_class_Error_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, NULL)
137 ZEND_RAW_FENTRY("getLine", zim_Exception_getLine, arginfo_class_Error_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, NULL)
138 ZEND_RAW_FENTRY("getTrace", zim_Exception_getTrace, arginfo_class_Error_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, NULL)
139 ZEND_RAW_FENTRY("getPrevious", zim_Exception_getPrevious, arginfo_class_Error_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, NULL)
140 ZEND_RAW_FENTRY("getTraceAsString", zim_Exception_getTraceAsString, arginfo_class_Error_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, NULL)
141 ZEND_RAW_FENTRY("__toString", zim_Exception___toString, arginfo_class_Error___toString, ZEND_ACC_PUBLIC, NULL, NULL)
142 ZEND_FE_END
143 };
144
register_class_Throwable(zend_class_entry * class_entry_Stringable)145 static zend_class_entry *register_class_Throwable(zend_class_entry *class_entry_Stringable)
146 {
147 zend_class_entry ce, *class_entry;
148
149 INIT_CLASS_ENTRY(ce, "Throwable", class_Throwable_methods);
150 class_entry = zend_register_internal_interface(&ce);
151 zend_class_implements(class_entry, 1, class_entry_Stringable);
152
153 return class_entry;
154 }
155
register_class_Exception(zend_class_entry * class_entry_Throwable)156 static zend_class_entry *register_class_Exception(zend_class_entry *class_entry_Throwable)
157 {
158 zend_class_entry ce, *class_entry;
159
160 INIT_CLASS_ENTRY(ce, "Exception", class_Exception_methods);
161 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
162 zend_class_implements(class_entry, 1, class_entry_Throwable);
163
164 zval property_message_default_value;
165 ZVAL_EMPTY_STRING(&property_message_default_value);
166 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_MESSAGE), &property_message_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
167
168 zval property_string_default_value;
169 ZVAL_EMPTY_STRING(&property_string_default_value);
170 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_STRING), &property_string_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
171
172 zval property_code_default_value;
173 ZVAL_LONG(&property_code_default_value, 0);
174 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_CODE), &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
175
176 zval property_file_default_value;
177 ZVAL_EMPTY_STRING(&property_file_default_value);
178 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_FILE), &property_file_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
179
180 zval property_line_default_value;
181 ZVAL_LONG(&property_line_default_value, 0);
182 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_LINE), &property_line_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
183
184 zval property_trace_default_value;
185 ZVAL_EMPTY_ARRAY(&property_trace_default_value);
186 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_TRACE), &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY));
187
188 zval property_previous_default_value;
189 ZVAL_NULL(&property_previous_default_value);
190 zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
191 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_PREVIOUS), &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previous_class_Throwable, 0, MAY_BE_NULL));
192
193 return class_entry;
194 }
195
register_class_ErrorException(zend_class_entry * class_entry_Exception)196 static zend_class_entry *register_class_ErrorException(zend_class_entry *class_entry_Exception)
197 {
198 zend_class_entry ce, *class_entry;
199
200 INIT_CLASS_ENTRY(ce, "ErrorException", class_ErrorException_methods);
201 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Exception, 0);
202
203 zval property_severity_default_value;
204 ZVAL_LONG(&property_severity_default_value, E_ERROR);
205 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_SEVERITY), &property_severity_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
206
207 return class_entry;
208 }
209
register_class_Error(zend_class_entry * class_entry_Throwable)210 static zend_class_entry *register_class_Error(zend_class_entry *class_entry_Throwable)
211 {
212 zend_class_entry ce, *class_entry;
213
214 INIT_CLASS_ENTRY(ce, "Error", class_Error_methods);
215 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
216 zend_class_implements(class_entry, 1, class_entry_Throwable);
217
218 zval property_message_default_value;
219 ZVAL_EMPTY_STRING(&property_message_default_value);
220 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_MESSAGE), &property_message_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
221
222 zval property_string_default_value;
223 ZVAL_EMPTY_STRING(&property_string_default_value);
224 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_STRING), &property_string_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
225
226 zval property_code_default_value;
227 ZVAL_LONG(&property_code_default_value, 0);
228 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_CODE), &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
229
230 zval property_file_default_value;
231 ZVAL_EMPTY_STRING(&property_file_default_value);
232 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_FILE), &property_file_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
233
234 zval property_line_default_value;
235 ZVAL_UNDEF(&property_line_default_value);
236 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_LINE), &property_line_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
237
238 zval property_trace_default_value;
239 ZVAL_EMPTY_ARRAY(&property_trace_default_value);
240 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_TRACE), &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY));
241
242 zval property_previous_default_value;
243 ZVAL_NULL(&property_previous_default_value);
244 zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
245 zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_PREVIOUS), &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previous_class_Throwable, 0, MAY_BE_NULL));
246
247 return class_entry;
248 }
249
register_class_CompileError(zend_class_entry * class_entry_Error)250 static zend_class_entry *register_class_CompileError(zend_class_entry *class_entry_Error)
251 {
252 zend_class_entry ce, *class_entry;
253
254 INIT_CLASS_ENTRY(ce, "CompileError", NULL);
255 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
256
257 return class_entry;
258 }
259
register_class_ParseError(zend_class_entry * class_entry_CompileError)260 static zend_class_entry *register_class_ParseError(zend_class_entry *class_entry_CompileError)
261 {
262 zend_class_entry ce, *class_entry;
263
264 INIT_CLASS_ENTRY(ce, "ParseError", NULL);
265 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_CompileError, 0);
266
267 return class_entry;
268 }
269
register_class_TypeError(zend_class_entry * class_entry_Error)270 static zend_class_entry *register_class_TypeError(zend_class_entry *class_entry_Error)
271 {
272 zend_class_entry ce, *class_entry;
273
274 INIT_CLASS_ENTRY(ce, "TypeError", NULL);
275 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
276
277 return class_entry;
278 }
279
register_class_ArgumentCountError(zend_class_entry * class_entry_TypeError)280 static zend_class_entry *register_class_ArgumentCountError(zend_class_entry *class_entry_TypeError)
281 {
282 zend_class_entry ce, *class_entry;
283
284 INIT_CLASS_ENTRY(ce, "ArgumentCountError", NULL);
285 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_TypeError, 0);
286
287 return class_entry;
288 }
289
register_class_ValueError(zend_class_entry * class_entry_Error)290 static zend_class_entry *register_class_ValueError(zend_class_entry *class_entry_Error)
291 {
292 zend_class_entry ce, *class_entry;
293
294 INIT_CLASS_ENTRY(ce, "ValueError", NULL);
295 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
296
297 return class_entry;
298 }
299
register_class_ArithmeticError(zend_class_entry * class_entry_Error)300 static zend_class_entry *register_class_ArithmeticError(zend_class_entry *class_entry_Error)
301 {
302 zend_class_entry ce, *class_entry;
303
304 INIT_CLASS_ENTRY(ce, "ArithmeticError", NULL);
305 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
306
307 return class_entry;
308 }
309
register_class_DivisionByZeroError(zend_class_entry * class_entry_ArithmeticError)310 static zend_class_entry *register_class_DivisionByZeroError(zend_class_entry *class_entry_ArithmeticError)
311 {
312 zend_class_entry ce, *class_entry;
313
314 INIT_CLASS_ENTRY(ce, "DivisionByZeroError", NULL);
315 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_ArithmeticError, 0);
316
317 return class_entry;
318 }
319
register_class_UnhandledMatchError(zend_class_entry * class_entry_Error)320 static zend_class_entry *register_class_UnhandledMatchError(zend_class_entry *class_entry_Error)
321 {
322 zend_class_entry ce, *class_entry;
323
324 INIT_CLASS_ENTRY(ce, "UnhandledMatchError", NULL);
325 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
326
327 return class_entry;
328 }
329
register_class_RequestParseBodyException(zend_class_entry * class_entry_Exception)330 static zend_class_entry *register_class_RequestParseBodyException(zend_class_entry *class_entry_Exception)
331 {
332 zend_class_entry ce, *class_entry;
333
334 INIT_CLASS_ENTRY(ce, "RequestParseBodyException", NULL);
335 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Exception, 0);
336
337 return class_entry;
338 }
339