1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 9d1c2027ebd14e621d9b5b79056ba7300a455be8 */
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
85 ZEND_METHOD(Exception, __clone);
86 ZEND_METHOD(Exception, __construct);
87 ZEND_METHOD(Exception, __wakeup);
88 ZEND_METHOD(Exception, getMessage);
89 ZEND_METHOD(Exception, getCode);
90 ZEND_METHOD(Exception, getFile);
91 ZEND_METHOD(Exception, getLine);
92 ZEND_METHOD(Exception, getTrace);
93 ZEND_METHOD(Exception, getPrevious);
94 ZEND_METHOD(Exception, getTraceAsString);
95 ZEND_METHOD(Exception, __toString);
96 ZEND_METHOD(ErrorException, __construct);
97 ZEND_METHOD(ErrorException, getSeverity);
98
99
100 static const zend_function_entry class_Throwable_methods[] = {
101 ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getMessage, arginfo_class_Throwable_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
102 ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getCode, arginfo_class_Throwable_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
103 ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getFile, arginfo_class_Throwable_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
104 ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getLine, arginfo_class_Throwable_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
105 ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getTrace, arginfo_class_Throwable_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
106 ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getPrevious, arginfo_class_Throwable_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
107 ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getTraceAsString, arginfo_class_Throwable_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
108 ZEND_FE_END
109 };
110
111
112 static const zend_function_entry class_Exception_methods[] = {
113 ZEND_ME(Exception, __clone, arginfo_class_Exception___clone, ZEND_ACC_PRIVATE)
114 ZEND_ME(Exception, __construct, arginfo_class_Exception___construct, ZEND_ACC_PUBLIC)
115 ZEND_ME(Exception, __wakeup, arginfo_class_Exception___wakeup, ZEND_ACC_PUBLIC)
116 ZEND_ME(Exception, getMessage, arginfo_class_Exception_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
117 ZEND_ME(Exception, getCode, arginfo_class_Exception_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
118 ZEND_ME(Exception, getFile, arginfo_class_Exception_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
119 ZEND_ME(Exception, getLine, arginfo_class_Exception_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
120 ZEND_ME(Exception, getTrace, arginfo_class_Exception_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
121 ZEND_ME(Exception, getPrevious, arginfo_class_Exception_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
122 ZEND_ME(Exception, getTraceAsString, arginfo_class_Exception_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
123 ZEND_ME(Exception, __toString, arginfo_class_Exception___toString, ZEND_ACC_PUBLIC)
124 ZEND_FE_END
125 };
126
127
128 static const zend_function_entry class_ErrorException_methods[] = {
129 ZEND_ME(ErrorException, __construct, arginfo_class_ErrorException___construct, ZEND_ACC_PUBLIC)
130 ZEND_ME(ErrorException, getSeverity, arginfo_class_ErrorException_getSeverity, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
131 ZEND_FE_END
132 };
133
134
135 static const zend_function_entry class_Error_methods[] = {
136 ZEND_MALIAS(Exception, __clone, __clone, arginfo_class_Error___clone, ZEND_ACC_PRIVATE)
137 ZEND_MALIAS(Exception, __construct, __construct, arginfo_class_Error___construct, ZEND_ACC_PUBLIC)
138 ZEND_MALIAS(Exception, __wakeup, __wakeup, arginfo_class_Error___wakeup, ZEND_ACC_PUBLIC)
139 ZEND_MALIAS(Exception, getMessage, getMessage, arginfo_class_Error_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
140 ZEND_MALIAS(Exception, getCode, getCode, arginfo_class_Error_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
141 ZEND_MALIAS(Exception, getFile, getFile, arginfo_class_Error_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
142 ZEND_MALIAS(Exception, getLine, getLine, arginfo_class_Error_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
143 ZEND_MALIAS(Exception, getTrace, getTrace, arginfo_class_Error_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
144 ZEND_MALIAS(Exception, getPrevious, getPrevious, arginfo_class_Error_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
145 ZEND_MALIAS(Exception, getTraceAsString, getTraceAsString, arginfo_class_Error_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
146 ZEND_MALIAS(Exception, __toString, __toString, arginfo_class_Error___toString, ZEND_ACC_PUBLIC)
147 ZEND_FE_END
148 };
149
150
151 static const zend_function_entry class_CompileError_methods[] = {
152 ZEND_FE_END
153 };
154
155
156 static const zend_function_entry class_ParseError_methods[] = {
157 ZEND_FE_END
158 };
159
160
161 static const zend_function_entry class_TypeError_methods[] = {
162 ZEND_FE_END
163 };
164
165
166 static const zend_function_entry class_ArgumentCountError_methods[] = {
167 ZEND_FE_END
168 };
169
170
171 static const zend_function_entry class_ValueError_methods[] = {
172 ZEND_FE_END
173 };
174
175
176 static const zend_function_entry class_ArithmeticError_methods[] = {
177 ZEND_FE_END
178 };
179
180
181 static const zend_function_entry class_DivisionByZeroError_methods[] = {
182 ZEND_FE_END
183 };
184
185
186 static const zend_function_entry class_UnhandledMatchError_methods[] = {
187 ZEND_FE_END
188 };
189
register_class_Throwable(zend_class_entry * class_entry_Stringable)190 static zend_class_entry *register_class_Throwable(zend_class_entry *class_entry_Stringable)
191 {
192 zend_class_entry ce, *class_entry;
193
194 INIT_CLASS_ENTRY(ce, "Throwable", class_Throwable_methods);
195 class_entry = zend_register_internal_interface(&ce);
196 zend_class_implements(class_entry, 1, class_entry_Stringable);
197
198 return class_entry;
199 }
200
register_class_Exception(zend_class_entry * class_entry_Throwable)201 static zend_class_entry *register_class_Exception(zend_class_entry *class_entry_Throwable)
202 {
203 zend_class_entry ce, *class_entry;
204
205 INIT_CLASS_ENTRY(ce, "Exception", class_Exception_methods);
206 class_entry = zend_register_internal_class_ex(&ce, NULL);
207 zend_class_implements(class_entry, 1, class_entry_Throwable);
208
209 zval property_message_default_value;
210 ZVAL_EMPTY_STRING(&property_message_default_value);
211 zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
212 zend_declare_property_ex(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL);
213 zend_string_release(property_message_name);
214
215 zval property_string_default_value;
216 ZVAL_EMPTY_STRING(&property_string_default_value);
217 zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
218 zend_declare_typed_property(class_entry, property_string_name, &property_string_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
219 zend_string_release(property_string_name);
220
221 zval property_code_default_value;
222 ZVAL_LONG(&property_code_default_value, 0);
223 zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
224 zend_declare_property_ex(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL);
225 zend_string_release(property_code_name);
226
227 zval property_file_default_value;
228 ZVAL_EMPTY_STRING(&property_file_default_value);
229 zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
230 zend_declare_typed_property(class_entry, property_file_name, &property_file_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
231 zend_string_release(property_file_name);
232
233 zval property_line_default_value;
234 ZVAL_LONG(&property_line_default_value, 0);
235 zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
236 zend_declare_typed_property(class_entry, property_line_name, &property_line_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
237 zend_string_release(property_line_name);
238
239 zval property_trace_default_value;
240 ZVAL_EMPTY_ARRAY(&property_trace_default_value);
241 zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
242 zend_declare_typed_property(class_entry, property_trace_name, &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY));
243 zend_string_release(property_trace_name);
244
245 zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
246 zval property_previous_default_value;
247 ZVAL_NULL(&property_previous_default_value);
248 zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
249 zend_declare_typed_property(class_entry, property_previous_name, &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previous_class_Throwable, 0, MAY_BE_NULL));
250 zend_string_release(property_previous_name);
251
252 return class_entry;
253 }
254
register_class_ErrorException(zend_class_entry * class_entry_Exception)255 static zend_class_entry *register_class_ErrorException(zend_class_entry *class_entry_Exception)
256 {
257 zend_class_entry ce, *class_entry;
258
259 INIT_CLASS_ENTRY(ce, "ErrorException", class_ErrorException_methods);
260 class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception);
261
262 return class_entry;
263 }
264
register_class_Error(zend_class_entry * class_entry_Throwable)265 static zend_class_entry *register_class_Error(zend_class_entry *class_entry_Throwable)
266 {
267 zend_class_entry ce, *class_entry;
268
269 INIT_CLASS_ENTRY(ce, "Error", class_Error_methods);
270 class_entry = zend_register_internal_class_ex(&ce, NULL);
271 zend_class_implements(class_entry, 1, class_entry_Throwable);
272
273 zval property_message_default_value;
274 ZVAL_EMPTY_STRING(&property_message_default_value);
275 zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
276 zend_declare_property_ex(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL);
277 zend_string_release(property_message_name);
278
279 zval property_string_default_value;
280 ZVAL_EMPTY_STRING(&property_string_default_value);
281 zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
282 zend_declare_typed_property(class_entry, property_string_name, &property_string_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
283 zend_string_release(property_string_name);
284
285 zval property_code_default_value;
286 ZVAL_LONG(&property_code_default_value, 0);
287 zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
288 zend_declare_property_ex(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL);
289 zend_string_release(property_code_name);
290
291 zval property_file_default_value;
292 ZVAL_EMPTY_STRING(&property_file_default_value);
293 zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
294 zend_declare_typed_property(class_entry, property_file_name, &property_file_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
295 zend_string_release(property_file_name);
296
297 zval property_line_default_value;
298 ZVAL_UNDEF(&property_line_default_value);
299 zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
300 zend_declare_typed_property(class_entry, property_line_name, &property_line_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
301 zend_string_release(property_line_name);
302
303 zval property_trace_default_value;
304 ZVAL_EMPTY_ARRAY(&property_trace_default_value);
305 zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
306 zend_declare_typed_property(class_entry, property_trace_name, &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY));
307 zend_string_release(property_trace_name);
308
309 zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
310 zval property_previous_default_value;
311 ZVAL_NULL(&property_previous_default_value);
312 zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
313 zend_declare_typed_property(class_entry, property_previous_name, &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previous_class_Throwable, 0, MAY_BE_NULL));
314 zend_string_release(property_previous_name);
315
316 return class_entry;
317 }
318
register_class_CompileError(zend_class_entry * class_entry_Error)319 static zend_class_entry *register_class_CompileError(zend_class_entry *class_entry_Error)
320 {
321 zend_class_entry ce, *class_entry;
322
323 INIT_CLASS_ENTRY(ce, "CompileError", class_CompileError_methods);
324 class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
325
326 return class_entry;
327 }
328
register_class_ParseError(zend_class_entry * class_entry_CompileError)329 static zend_class_entry *register_class_ParseError(zend_class_entry *class_entry_CompileError)
330 {
331 zend_class_entry ce, *class_entry;
332
333 INIT_CLASS_ENTRY(ce, "ParseError", class_ParseError_methods);
334 class_entry = zend_register_internal_class_ex(&ce, class_entry_CompileError);
335
336 return class_entry;
337 }
338
register_class_TypeError(zend_class_entry * class_entry_Error)339 static zend_class_entry *register_class_TypeError(zend_class_entry *class_entry_Error)
340 {
341 zend_class_entry ce, *class_entry;
342
343 INIT_CLASS_ENTRY(ce, "TypeError", class_TypeError_methods);
344 class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
345
346 return class_entry;
347 }
348
register_class_ArgumentCountError(zend_class_entry * class_entry_TypeError)349 static zend_class_entry *register_class_ArgumentCountError(zend_class_entry *class_entry_TypeError)
350 {
351 zend_class_entry ce, *class_entry;
352
353 INIT_CLASS_ENTRY(ce, "ArgumentCountError", class_ArgumentCountError_methods);
354 class_entry = zend_register_internal_class_ex(&ce, class_entry_TypeError);
355
356 return class_entry;
357 }
358
register_class_ValueError(zend_class_entry * class_entry_Error)359 static zend_class_entry *register_class_ValueError(zend_class_entry *class_entry_Error)
360 {
361 zend_class_entry ce, *class_entry;
362
363 INIT_CLASS_ENTRY(ce, "ValueError", class_ValueError_methods);
364 class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
365
366 return class_entry;
367 }
368
register_class_ArithmeticError(zend_class_entry * class_entry_Error)369 static zend_class_entry *register_class_ArithmeticError(zend_class_entry *class_entry_Error)
370 {
371 zend_class_entry ce, *class_entry;
372
373 INIT_CLASS_ENTRY(ce, "ArithmeticError", class_ArithmeticError_methods);
374 class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
375
376 return class_entry;
377 }
378
register_class_DivisionByZeroError(zend_class_entry * class_entry_ArithmeticError)379 static zend_class_entry *register_class_DivisionByZeroError(zend_class_entry *class_entry_ArithmeticError)
380 {
381 zend_class_entry ce, *class_entry;
382
383 INIT_CLASS_ENTRY(ce, "DivisionByZeroError", class_DivisionByZeroError_methods);
384 class_entry = zend_register_internal_class_ex(&ce, class_entry_ArithmeticError);
385
386 return class_entry;
387 }
388
register_class_UnhandledMatchError(zend_class_entry * class_entry_Error)389 static zend_class_entry *register_class_UnhandledMatchError(zend_class_entry *class_entry_Error)
390 {
391 zend_class_entry ce, *class_entry;
392
393 INIT_CLASS_ENTRY(ce, "UnhandledMatchError", class_UnhandledMatchError_methods);
394 class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
395
396 return class_entry;
397 }
398