php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_exceptions_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: ba1562ca8fe2fe48c40bc52d10545aa989afd86c */
3
4ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
6
7ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Throwable_getCode, 0, 0, 0)
9
10#define arginfo_class_Throwable_getFile arginfo_class_Throwable_getMessage
11
12ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getLine, 0, 0, IS_LONG, 0)
14
15ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getTrace, 0, 0, IS_ARRAY, 0)
17
18ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Throwable_getPrevious, 0, 0, Throwable, 1)
20
21#define arginfo_class_Throwable_getTraceAsString arginfo_class_Throwable_getMessage
22
23ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Exception___clone, 0, 0, IS_VOID, 0)
25
26ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Exception___construct, 0, 0, 0)
29 ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, previous, Throwable, 1, "null")
31
32ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Exception___wakeup, 0, 0, IS_VOID, 0)
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
51ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ErrorException___construct, 0, 0, 0)
54 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, severity, IS_LONG, 0, "E_ERROR")
57 ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, previous, Throwable, 1, "null")
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
84ZEND_METHOD(Exception, __clone);
85ZEND_METHOD(Exception, __construct);
86ZEND_METHOD(Exception, __wakeup);
87ZEND_METHOD(Exception, getMessage);
88ZEND_METHOD(Exception, getCode);
89ZEND_METHOD(Exception, getFile);
90ZEND_METHOD(Exception, getLine);
91ZEND_METHOD(Exception, getTrace);
92ZEND_METHOD(Exception, getPrevious);
93ZEND_METHOD(Exception, getTraceAsString);
94ZEND_METHOD(Exception, __toString);
95ZEND_METHOD(ErrorException, __construct);
96ZEND_METHOD(ErrorException, getSeverity);
97
98static 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)
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)
107};
108
109static 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)
122};
123
124static const zend_function_entry class_ErrorException_methods[] = {
125 ZEND_ME(ErrorException, __construct, arginfo_class_ErrorException___construct, ZEND_ACC_PUBLIC)
128};
129
130static 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)
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)
143};
144
145static 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
156static 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_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
167 zend_declare_typed_property(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
168 zend_string_release(property_message_name);
169
170 zval property_string_default_value;
171 ZVAL_EMPTY_STRING(&property_string_default_value);
172 zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
173 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));
174 zend_string_release(property_string_name);
175
176 zval property_code_default_value;
177 ZVAL_LONG(&property_code_default_value, 0);
178 zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
179 zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
180 zend_string_release(property_code_name);
181
182 zval property_file_default_value;
183 ZVAL_EMPTY_STRING(&property_file_default_value);
184 zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
185 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));
186 zend_string_release(property_file_name);
187
188 zval property_line_default_value;
189 ZVAL_LONG(&property_line_default_value, 0);
190 zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
191 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));
192 zend_string_release(property_line_name);
193
194 zval property_trace_default_value;
195 ZVAL_EMPTY_ARRAY(&property_trace_default_value);
196 zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
197 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));
198 zend_string_release(property_trace_name);
199
200 zval property_previous_default_value;
201 ZVAL_NULL(&property_previous_default_value);
202 zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
203 zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
204 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));
205 zend_string_release(property_previous_name);
206
207 return class_entry;
208}
209
210static zend_class_entry *register_class_ErrorException(zend_class_entry *class_entry_Exception)
211{
212 zend_class_entry ce, *class_entry;
213
214 INIT_CLASS_ENTRY(ce, "ErrorException", class_ErrorException_methods);
215 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Exception, 0);
216
217 zval property_severity_default_value;
218 ZVAL_LONG(&property_severity_default_value, E_ERROR);
219 zend_string *property_severity_name = zend_string_init("severity", sizeof("severity") - 1, 1);
220 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));
221 zend_string_release(property_severity_name);
222
223 return class_entry;
224}
225
226static zend_class_entry *register_class_Error(zend_class_entry *class_entry_Throwable)
227{
228 zend_class_entry ce, *class_entry;
229
230 INIT_CLASS_ENTRY(ce, "Error", class_Error_methods);
231 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
232 zend_class_implements(class_entry, 1, class_entry_Throwable);
233
234 zval property_message_default_value;
235 ZVAL_EMPTY_STRING(&property_message_default_value);
236 zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
237 zend_declare_typed_property(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
238 zend_string_release(property_message_name);
239
240 zval property_string_default_value;
241 ZVAL_EMPTY_STRING(&property_string_default_value);
242 zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
243 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));
244 zend_string_release(property_string_name);
245
246 zval property_code_default_value;
247 ZVAL_LONG(&property_code_default_value, 0);
248 zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
249 zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
250 zend_string_release(property_code_name);
251
252 zval property_file_default_value;
253 ZVAL_EMPTY_STRING(&property_file_default_value);
254 zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
255 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));
256 zend_string_release(property_file_name);
257
258 zval property_line_default_value;
259 ZVAL_UNDEF(&property_line_default_value);
260 zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
261 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));
262 zend_string_release(property_line_name);
263
264 zval property_trace_default_value;
265 ZVAL_EMPTY_ARRAY(&property_trace_default_value);
266 zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
267 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));
268 zend_string_release(property_trace_name);
269
270 zval property_previous_default_value;
271 ZVAL_NULL(&property_previous_default_value);
272 zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
273 zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
274 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));
275 zend_string_release(property_previous_name);
276
277 return class_entry;
278}
279
280static zend_class_entry *register_class_CompileError(zend_class_entry *class_entry_Error)
281{
282 zend_class_entry ce, *class_entry;
283
284 INIT_CLASS_ENTRY(ce, "CompileError", NULL);
285 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
286
287 return class_entry;
288}
289
290static zend_class_entry *register_class_ParseError(zend_class_entry *class_entry_CompileError)
291{
292 zend_class_entry ce, *class_entry;
293
294 INIT_CLASS_ENTRY(ce, "ParseError", NULL);
295 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_CompileError, 0);
296
297 return class_entry;
298}
299
300static zend_class_entry *register_class_TypeError(zend_class_entry *class_entry_Error)
301{
302 zend_class_entry ce, *class_entry;
303
304 INIT_CLASS_ENTRY(ce, "TypeError", NULL);
305 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
306
307 return class_entry;
308}
309
310static zend_class_entry *register_class_ArgumentCountError(zend_class_entry *class_entry_TypeError)
311{
312 zend_class_entry ce, *class_entry;
313
314 INIT_CLASS_ENTRY(ce, "ArgumentCountError", NULL);
315 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_TypeError, 0);
316
317 return class_entry;
318}
319
320static zend_class_entry *register_class_ValueError(zend_class_entry *class_entry_Error)
321{
322 zend_class_entry ce, *class_entry;
323
324 INIT_CLASS_ENTRY(ce, "ValueError", NULL);
325 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
326
327 return class_entry;
328}
329
330static zend_class_entry *register_class_ArithmeticError(zend_class_entry *class_entry_Error)
331{
332 zend_class_entry ce, *class_entry;
333
334 INIT_CLASS_ENTRY(ce, "ArithmeticError", NULL);
335 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
336
337 return class_entry;
338}
339
340static zend_class_entry *register_class_DivisionByZeroError(zend_class_entry *class_entry_ArithmeticError)
341{
342 zend_class_entry ce, *class_entry;
343
344 INIT_CLASS_ENTRY(ce, "DivisionByZeroError", NULL);
345 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_ArithmeticError, 0);
346
347 return class_entry;
348}
349
350static zend_class_entry *register_class_UnhandledMatchError(zend_class_entry *class_entry_Error)
351{
352 zend_class_entry ce, *class_entry;
353
354 INIT_CLASS_ENTRY(ce, "UnhandledMatchError", NULL);
355 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, 0);
356
357 return class_entry;
358}
359
360static zend_class_entry *register_class_RequestParseBodyException(zend_class_entry *class_entry_Exception)
361{
362 zend_class_entry ce, *class_entry;
363
364 INIT_CLASS_ENTRY(ce, "RequestParseBodyException", NULL);
365 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Exception, 0);
366
367 return class_entry;
368}
#define NULL
Definition gdcache.h:45
int line
Definition php_ffi.h:54
ZEND_API zend_property_info * zend_declare_typed_property(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type)
Definition zend_API.c:4505
ZEND_API zend_class_entry * zend_register_internal_interface(zend_class_entry *orig_class_entry)
Definition zend_API.c:3557
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
ZEND_API void zend_class_implements(zend_class_entry *class_entry, int num_interfaces,...)
Definition zend_API.c:3527
#define ZEND_FE_END
Definition zend_API.h:124
#define ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, class_name, allow_null, default_value)
Definition zend_API.h:156
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args, class_name, allow_null)
Definition zend_API.h:172
#define ZEND_METHOD(classname, name)
Definition zend_API.h:76
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_BEGIN_ARG_INFO_EX(name, _unused, return_reference, required_num_args)
Definition zend_API.h:214
#define ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:208
#define ZEND_ME(classname, name, arg_info, flags)
Definition zend_API.h:91
#define ZVAL_EMPTY_STRING(z)
Definition zend_API.h:961
struct _zval_struct zval
#define ZEND_ACC_FINAL
#define ZEND_ACC_ABSTRACT
#define ZEND_ACC_PRIVATE
#define ZEND_ACC_PUBLIC
#define ZEND_ACC_PROTECTED
#define E_ERROR
Definition zend_errors.h:23
#define arginfo_class_Throwable_getTraceAsString
#define arginfo_class_Error_getTrace
#define arginfo_class_Error___construct
#define arginfo_class_Error_getCode
#define arginfo_class_Error_getMessage
#define arginfo_class_Error___clone
#define arginfo_class_Exception_getMessage
#define arginfo_class_Error___toString
#define arginfo_class_Exception_getTraceAsString
#define arginfo_class_Exception_getTrace
#define arginfo_class_Error_getTraceAsString
#define arginfo_class_Error_getLine
#define arginfo_class_Exception_getLine
#define arginfo_class_Error_getFile
#define arginfo_class_Error___wakeup
#define arginfo_class_Exception___toString
#define arginfo_class_Exception_getCode
#define arginfo_class_Exception_getFile
#define arginfo_class_Exception_getPrevious
#define arginfo_class_Throwable_getFile
#define arginfo_class_Error_getPrevious
#define arginfo_class_ErrorException_getSeverity
#define ZVAL_EMPTY_ARRAY(z)
Definition zend_hash.h:87
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define MAY_BE_STRING
#define MAY_BE_NULL
#define MAY_BE_LONG
#define MAY_BE_ARRAY
#define ZVAL_UNDEF(z)
#define ZEND_TYPE_INIT_MASK(_type_mask)
Definition zend_types.h:283
#define ZVAL_NULL(z)
#define ZVAL_LONG(z, l)
#define IS_STRING
Definition zend_types.h:606
#define IS_ARRAY
Definition zend_types.h:607
#define IS_VOID
Definition zend_types.h:617
#define ZEND_TYPE_INIT_NONE(extra_flags)
Definition zend_types.h:280
#define IS_LONG
Definition zend_types.h:604
#define ZEND_TYPE_INIT_CLASS(class_name, allow_null, extra_flags)
Definition zend_types.h:303