xref: /php-src/Zend/zend_exceptions_arginfo.h (revision f2e199e8)
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 
145 static const zend_function_entry class_CompileError_methods[] = {
146 	ZEND_FE_END
147 };
148 
149 static const zend_function_entry class_ParseError_methods[] = {
150 	ZEND_FE_END
151 };
152 
153 static const zend_function_entry class_TypeError_methods[] = {
154 	ZEND_FE_END
155 };
156 
157 static const zend_function_entry class_ArgumentCountError_methods[] = {
158 	ZEND_FE_END
159 };
160 
161 static const zend_function_entry class_ValueError_methods[] = {
162 	ZEND_FE_END
163 };
164 
165 static const zend_function_entry class_ArithmeticError_methods[] = {
166 	ZEND_FE_END
167 };
168 
169 static const zend_function_entry class_DivisionByZeroError_methods[] = {
170 	ZEND_FE_END
171 };
172 
173 static const zend_function_entry class_UnhandledMatchError_methods[] = {
174 	ZEND_FE_END
175 };
176 
177 static const zend_function_entry class_RequestParseBodyException_methods[] = {
178 	ZEND_FE_END
179 };
180 
register_class_Throwable(zend_class_entry * class_entry_Stringable)181 static zend_class_entry *register_class_Throwable(zend_class_entry *class_entry_Stringable)
182 {
183 	zend_class_entry ce, *class_entry;
184 
185 	INIT_CLASS_ENTRY(ce, "Throwable", class_Throwable_methods);
186 	class_entry = zend_register_internal_interface(&ce);
187 	zend_class_implements(class_entry, 1, class_entry_Stringable);
188 
189 	return class_entry;
190 }
191 
register_class_Exception(zend_class_entry * class_entry_Throwable)192 static zend_class_entry *register_class_Exception(zend_class_entry *class_entry_Throwable)
193 {
194 	zend_class_entry ce, *class_entry;
195 
196 	INIT_CLASS_ENTRY(ce, "Exception", class_Exception_methods);
197 	class_entry = zend_register_internal_class_ex(&ce, NULL);
198 	zend_class_implements(class_entry, 1, class_entry_Throwable);
199 
200 	zval property_message_default_value;
201 	ZVAL_EMPTY_STRING(&property_message_default_value);
202 	zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
203 	zend_declare_typed_property(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
204 	zend_string_release(property_message_name);
205 
206 	zval property_string_default_value;
207 	ZVAL_EMPTY_STRING(&property_string_default_value);
208 	zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
209 	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));
210 	zend_string_release(property_string_name);
211 
212 	zval property_code_default_value;
213 	ZVAL_LONG(&property_code_default_value, 0);
214 	zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
215 	zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
216 	zend_string_release(property_code_name);
217 
218 	zval property_file_default_value;
219 	ZVAL_EMPTY_STRING(&property_file_default_value);
220 	zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
221 	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));
222 	zend_string_release(property_file_name);
223 
224 	zval property_line_default_value;
225 	ZVAL_LONG(&property_line_default_value, 0);
226 	zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
227 	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));
228 	zend_string_release(property_line_name);
229 
230 	zval property_trace_default_value;
231 	ZVAL_EMPTY_ARRAY(&property_trace_default_value);
232 	zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
233 	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));
234 	zend_string_release(property_trace_name);
235 
236 	zval property_previous_default_value;
237 	ZVAL_NULL(&property_previous_default_value);
238 	zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
239 	zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
240 	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));
241 	zend_string_release(property_previous_name);
242 
243 	return class_entry;
244 }
245 
register_class_ErrorException(zend_class_entry * class_entry_Exception)246 static zend_class_entry *register_class_ErrorException(zend_class_entry *class_entry_Exception)
247 {
248 	zend_class_entry ce, *class_entry;
249 
250 	INIT_CLASS_ENTRY(ce, "ErrorException", class_ErrorException_methods);
251 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception);
252 
253 	zval property_severity_default_value;
254 	ZVAL_LONG(&property_severity_default_value, E_ERROR);
255 	zend_string *property_severity_name = zend_string_init("severity", sizeof("severity") - 1, 1);
256 	zend_declare_typed_property(class_entry, property_severity_name, &property_severity_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
257 	zend_string_release(property_severity_name);
258 
259 	return class_entry;
260 }
261 
register_class_Error(zend_class_entry * class_entry_Throwable)262 static zend_class_entry *register_class_Error(zend_class_entry *class_entry_Throwable)
263 {
264 	zend_class_entry ce, *class_entry;
265 
266 	INIT_CLASS_ENTRY(ce, "Error", class_Error_methods);
267 	class_entry = zend_register_internal_class_ex(&ce, NULL);
268 	zend_class_implements(class_entry, 1, class_entry_Throwable);
269 
270 	zval property_message_default_value;
271 	ZVAL_EMPTY_STRING(&property_message_default_value);
272 	zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
273 	zend_declare_typed_property(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
274 	zend_string_release(property_message_name);
275 
276 	zval property_string_default_value;
277 	ZVAL_EMPTY_STRING(&property_string_default_value);
278 	zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
279 	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));
280 	zend_string_release(property_string_name);
281 
282 	zval property_code_default_value;
283 	ZVAL_LONG(&property_code_default_value, 0);
284 	zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
285 	zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
286 	zend_string_release(property_code_name);
287 
288 	zval property_file_default_value;
289 	ZVAL_EMPTY_STRING(&property_file_default_value);
290 	zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
291 	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));
292 	zend_string_release(property_file_name);
293 
294 	zval property_line_default_value;
295 	ZVAL_UNDEF(&property_line_default_value);
296 	zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
297 	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));
298 	zend_string_release(property_line_name);
299 
300 	zval property_trace_default_value;
301 	ZVAL_EMPTY_ARRAY(&property_trace_default_value);
302 	zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
303 	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));
304 	zend_string_release(property_trace_name);
305 
306 	zval property_previous_default_value;
307 	ZVAL_NULL(&property_previous_default_value);
308 	zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
309 	zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
310 	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));
311 	zend_string_release(property_previous_name);
312 
313 	return class_entry;
314 }
315 
register_class_CompileError(zend_class_entry * class_entry_Error)316 static zend_class_entry *register_class_CompileError(zend_class_entry *class_entry_Error)
317 {
318 	zend_class_entry ce, *class_entry;
319 
320 	INIT_CLASS_ENTRY(ce, "CompileError", class_CompileError_methods);
321 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
322 
323 	return class_entry;
324 }
325 
register_class_ParseError(zend_class_entry * class_entry_CompileError)326 static zend_class_entry *register_class_ParseError(zend_class_entry *class_entry_CompileError)
327 {
328 	zend_class_entry ce, *class_entry;
329 
330 	INIT_CLASS_ENTRY(ce, "ParseError", class_ParseError_methods);
331 	class_entry = zend_register_internal_class_ex(&ce, class_entry_CompileError);
332 
333 	return class_entry;
334 }
335 
register_class_TypeError(zend_class_entry * class_entry_Error)336 static zend_class_entry *register_class_TypeError(zend_class_entry *class_entry_Error)
337 {
338 	zend_class_entry ce, *class_entry;
339 
340 	INIT_CLASS_ENTRY(ce, "TypeError", class_TypeError_methods);
341 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
342 
343 	return class_entry;
344 }
345 
register_class_ArgumentCountError(zend_class_entry * class_entry_TypeError)346 static zend_class_entry *register_class_ArgumentCountError(zend_class_entry *class_entry_TypeError)
347 {
348 	zend_class_entry ce, *class_entry;
349 
350 	INIT_CLASS_ENTRY(ce, "ArgumentCountError", class_ArgumentCountError_methods);
351 	class_entry = zend_register_internal_class_ex(&ce, class_entry_TypeError);
352 
353 	return class_entry;
354 }
355 
register_class_ValueError(zend_class_entry * class_entry_Error)356 static zend_class_entry *register_class_ValueError(zend_class_entry *class_entry_Error)
357 {
358 	zend_class_entry ce, *class_entry;
359 
360 	INIT_CLASS_ENTRY(ce, "ValueError", class_ValueError_methods);
361 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
362 
363 	return class_entry;
364 }
365 
register_class_ArithmeticError(zend_class_entry * class_entry_Error)366 static zend_class_entry *register_class_ArithmeticError(zend_class_entry *class_entry_Error)
367 {
368 	zend_class_entry ce, *class_entry;
369 
370 	INIT_CLASS_ENTRY(ce, "ArithmeticError", class_ArithmeticError_methods);
371 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
372 
373 	return class_entry;
374 }
375 
register_class_DivisionByZeroError(zend_class_entry * class_entry_ArithmeticError)376 static zend_class_entry *register_class_DivisionByZeroError(zend_class_entry *class_entry_ArithmeticError)
377 {
378 	zend_class_entry ce, *class_entry;
379 
380 	INIT_CLASS_ENTRY(ce, "DivisionByZeroError", class_DivisionByZeroError_methods);
381 	class_entry = zend_register_internal_class_ex(&ce, class_entry_ArithmeticError);
382 
383 	return class_entry;
384 }
385 
register_class_UnhandledMatchError(zend_class_entry * class_entry_Error)386 static zend_class_entry *register_class_UnhandledMatchError(zend_class_entry *class_entry_Error)
387 {
388 	zend_class_entry ce, *class_entry;
389 
390 	INIT_CLASS_ENTRY(ce, "UnhandledMatchError", class_UnhandledMatchError_methods);
391 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
392 
393 	return class_entry;
394 }
395 
register_class_RequestParseBodyException(zend_class_entry * class_entry_Exception)396 static zend_class_entry *register_class_RequestParseBodyException(zend_class_entry *class_entry_Exception)
397 {
398 	zend_class_entry ce, *class_entry;
399 
400 	INIT_CLASS_ENTRY(ce, "RequestParseBodyException", class_RequestParseBodyException_methods);
401 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception);
402 
403 	return class_entry;
404 }
405