php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
test_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 20a58913caf419fb60a3bc9cf275db605e2c3b0f */
3
4ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_array_return, 0, 0, IS_ARRAY, 0)
6
7ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_nullable_array_return, 0, 0, IS_ARRAY, 1)
9
10ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_void_return, 0, 0, IS_VOID, 0)
12
13ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_compile_string, 0, 3, IS_VOID, 0)
14 ZEND_ARG_TYPE_INFO(0, source_string, IS_STRING, 0)
15 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
16 ZEND_ARG_TYPE_INFO(0, position, IS_LONG, 0)
18
19ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_deprecated, 0, 0, IS_VOID, 0)
22
23#define arginfo_zend_test_deprecated_attr arginfo_zend_test_void_return
24
25#define arginfo_zend_test_aliased arginfo_zend_test_void_return
26
27#define arginfo_zend_test_deprecated_aliased arginfo_zend_test_void_return
28
29ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_create_unterminated_string, 0, 1, IS_STRING, 0)
32
33ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_terminate_string, 0, 1, IS_VOID, 0)
36
37ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_leak_variable, 0, 1, IS_VOID, 0)
38 ZEND_ARG_TYPE_INFO(0, variable, IS_MIXED, 0)
40
41ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_leak_bytes, 0, 0, IS_VOID, 0)
44
48
49ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zend_string_or_object_or_null, 0, 1, MAY_BE_OBJECT|MAY_BE_STRING|MAY_BE_NULL)
52
53ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_zend_string_or_stdclass, 0, 1, stdClass, MAY_BE_STRING)
54 ZEND_ARG_INFO(0, param)
56
57ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_zend_string_or_stdclass_or_null, 0, 1, stdClass, MAY_BE_STRING|MAY_BE_NULL)
58 ZEND_ARG_INFO(0, param)
60
64
68
69ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_iterable, 0, 1, IS_VOID, 0)
73
74ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_weakmap_attach, 0, 2, _IS_BOOL, 0)
75 ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
78
79ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_weakmap_remove, 0, 1, _IS_BOOL, 0)
80 ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
82
83#define arginfo_zend_weakmap_dump arginfo_zend_test_array_return
84
85ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_zend_get_unit_enum, 0, 0, ZendTestUnitEnum, 0)
87
88ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_parameter_with_attribute, 0, 1, IS_LONG, 0)
89 ZEND_ARG_TYPE_INFO(0, parameter, IS_STRING, 0)
91
92#define arginfo_zend_test_attribute_with_named_argument arginfo_zend_test_void_return
93
94ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_get_current_func_name, 0, 0, IS_STRING, 0)
96
97ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_call_method, 0, 2, IS_MIXED, 0)
99 ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
103
104ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_object_init_with_constructor, 0, 1, IS_MIXED, 0)
105 ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
108
109ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_zend_ini_parse_quantity, 0, 1, IS_LONG, 0)
110 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
112
113#define arginfo_zend_test_zend_ini_parse_uquantity arginfo_zend_test_zend_ini_parse_quantity
114
115#define arginfo_zend_test_zend_ini_str arginfo_zend_get_current_func_name
116
117#if defined(ZEND_CHECK_STACK_LIMIT)
118ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_zend_call_stack_get, 0, 0, IS_ARRAY, 1)
120
121ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_zend_call_stack_use_all, 0, 0, IS_LONG, 0)
123#endif
124
125ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_is_string_marked_as_valid_utf8, 0, 1, _IS_BOOL, 0)
126 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
128
129ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_get_map_ptr_last, 0, 0, IS_LONG, 0)
131
132ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_crash, 0, 0, IS_VOID, 0)
135
136ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_fill_packed_array, 0, 1, IS_VOID, 0)
137 ZEND_ARG_TYPE_INFO(1, array, IS_ARRAY, 0)
139
140ZEND_BEGIN_ARG_INFO_EX(arginfo_zend_test_create_throwing_resource, 0, 0, 0)
142
143ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_open_basedir, 0, 0, IS_STRING, 1)
145
146#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
147ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_override_libxml_global_state, 0, 0, IS_VOID, 0)
149#endif
150
151ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_is_pcre_bundled, 0, 0, _IS_BOOL, 0)
153
154#if defined(PHP_WIN32)
155ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_set_fmode, 0, 1, IS_VOID, 0)
156 ZEND_ARG_TYPE_INFO(0, binary, _IS_BOOL, 0)
158#endif
159
160ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_cast_fread, 0, 1, IS_VOID, 0)
161 ZEND_ARG_INFO(0, stream)
163
164ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_is_zend_ptr, 0, 1, _IS_BOOL, 0)
167
168ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_log_err_debug, 0, 1, IS_VOID, 0)
169 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
171
172#define arginfo_ZendTestNS2_namespaced_func arginfo_zend_test_is_pcre_bundled
173
174#define arginfo_ZendTestNS2_namespaced_deprecated_func arginfo_zend_test_void_return
175
176#define arginfo_ZendTestNS2_namespaced_aliased_func arginfo_zend_test_void_return
177
178#define arginfo_ZendTestNS2_namespaced_deprecated_aliased_func arginfo_zend_test_void_return
179
180#define arginfo_ZendTestNS2_ZendSubNS_namespaced_func arginfo_zend_test_is_pcre_bundled
181
182#define arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_func arginfo_zend_test_void_return
183
184#define arginfo_ZendTestNS2_ZendSubNS_namespaced_aliased_func arginfo_zend_test_void_return
185
186#define arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_aliased_func arginfo_zend_test_void_return
187
188#define arginfo_class__ZendTestClass_is_object arginfo_zend_get_map_ptr_last
189
190#define arginfo_class__ZendTestClass___toString arginfo_zend_get_current_func_name
191
192ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestClass_returnsStatic, 0, 0, IS_STATIC, 0)
194
195ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class__ZendTestClass_returnsThrowable, 0, 0, Throwable, 0)
197
198ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestClass_variadicTest, 0, 0, IS_STATIC, 0)
201
202ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestClass_takesUnionType, 0, 1, IS_VOID, 0)
203 ZEND_ARG_OBJ_TYPE_MASK(0, arg, stdclass|Iterator, 0, NULL)
205
206ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestMagicCall___call, 0, 2, IS_MIXED, 0)
210
211#define arginfo_class__ZendTestMagicCallForward___call arginfo_class__ZendTestMagicCall___call
212
213ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class__ZendTestChildClass_returnsThrowable, 0, 0, Exception, 0)
215
216#define arginfo_class_ZendAttributeTest_testMethod arginfo_zend_test_is_pcre_bundled
217
218#define arginfo_class__ZendTestTrait_testMethod arginfo_zend_test_is_pcre_bundled
219
220ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZendTestAttributeWithArguments___construct, 0, 0, 1)
223
224ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZendTestParameterAttribute___construct, 0, 0, 1)
225 ZEND_ARG_TYPE_INFO(0, parameter, IS_STRING, 0)
227
228#define arginfo_class_ZendTestPropertyAttribute___construct arginfo_class_ZendTestParameterAttribute___construct
229
230#define arginfo_class_ZendTestClassWithMethodWithParameterAttribute_no_override arginfo_zend_test_parameter_with_attribute
231
232#define arginfo_class_ZendTestClassWithMethodWithParameterAttribute_override arginfo_zend_test_parameter_with_attribute
233
234#define arginfo_class_ZendTestChildClassWithMethodWithParameterAttribute_override arginfo_zend_test_parameter_with_attribute
235
236#define arginfo_class_ZendTestForbidDynamicCall_call arginfo_zend_test_void_return
237
238#define arginfo_class_ZendTestForbidDynamicCall_callStatic arginfo_zend_test_void_return
239
240#if (PHP_VERSION_ID >= 80100)
241ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZendTestNS_Foo_method, 0, 0, IS_LONG, 0)
242#else
243ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZendTestNS_Foo_method, 0, 0, 0)
244#endif
246
247ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_ZendTestNS_UnlikelyCompileError_method, 0, 0, ZendTestNS\\\125nlikelyCompileError, 1)
249
250ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_ZendTestNS_NotUnlikelyCompileError_method, 0, 0, ZendTestNS\\\116otUnlikelyCompileError, 1)
252
253#define arginfo_class_ZendTestNS2_Foo_method arginfo_zend_test_void_return
254
255#define arginfo_class_ZendTestNS2_ZendSubNS_Foo_method arginfo_zend_test_void_return
256
286#if defined(ZEND_CHECK_STACK_LIMIT)
289#endif
296#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
298#endif
300#if defined(PHP_WIN32)
302#endif
306static ZEND_FUNCTION(ZendTestNS2_namespaced_func);
307static ZEND_FUNCTION(ZendTestNS2_namespaced_deprecated_func);
308static ZEND_FUNCTION(ZendTestNS2_ZendSubNS_namespaced_func);
309static ZEND_FUNCTION(ZendTestNS2_ZendSubNS_namespaced_deprecated_func);
311static ZEND_METHOD(_ZendTestClass, __toString);
312static ZEND_METHOD(_ZendTestClass, returnsStatic);
313static ZEND_METHOD(_ZendTestClass, returnsThrowable);
314static ZEND_METHOD(_ZendTestClass, variadicTest);
315static ZEND_METHOD(_ZendTestClass, takesUnionType);
316static ZEND_METHOD(_ZendTestMagicCall, __call);
318static ZEND_METHOD(_ZendTestChildClass, returnsThrowable);
322static ZEND_METHOD(ZendTestParameterAttribute, __construct);
323static ZEND_METHOD(ZendTestPropertyAttribute, __construct);
328static ZEND_METHOD(ZendTestForbidDynamicCall, callStatic);
329static ZEND_METHOD(ZendTestNS_Foo, method);
330static ZEND_METHOD(ZendTestNS_UnlikelyCompileError, method);
331static ZEND_METHOD(ZendTestNS_NotUnlikelyCompileError, method);
332static ZEND_METHOD(ZendTestNS2_Foo, method);
333static ZEND_METHOD(ZendTestNS2_ZendSubNS_Foo, method);
334
335static const zend_function_entry ext_functions[] = {
336 ZEND_FE(zend_test_array_return, arginfo_zend_test_array_return)
337#if (PHP_VERSION_ID >= 80400)
338 ZEND_RAW_FENTRY("zend_test_nullable_array_return", zif_zend_test_nullable_array_return, arginfo_zend_test_nullable_array_return, ZEND_ACC_COMPILE_TIME_EVAL, NULL, "/**\n * \"Lorem ipsum\"\n * @see https://www.php.net\n * @since 8.3\n */")
339#else
340#if (PHP_VERSION_ID >= 80200)
341 ZEND_RAW_FENTRY("zend_test_nullable_array_return", zif_zend_test_nullable_array_return, arginfo_zend_test_nullable_array_return, ZEND_ACC_COMPILE_TIME_EVAL)
342#elif (PHP_VERSION_ID >= 80000)
343 ZEND_RAW_FENTRY("zend_test_nullable_array_return", zif_zend_test_nullable_array_return, arginfo_zend_test_nullable_array_return, 0)
344#endif
345#endif
346 ZEND_FE(zend_test_void_return, arginfo_zend_test_void_return)
347 ZEND_FE(zend_test_compile_string, arginfo_zend_test_compile_string)
348#if (PHP_VERSION_ID >= 80400)
349 ZEND_RAW_FENTRY("zend_test_deprecated", zif_zend_test_deprecated, arginfo_zend_test_deprecated, ZEND_ACC_DEPRECATED, NULL, NULL)
350#else
351 ZEND_RAW_FENTRY("zend_test_deprecated", zif_zend_test_deprecated, arginfo_zend_test_deprecated, ZEND_ACC_DEPRECATED)
352#endif
353#if (PHP_VERSION_ID >= 80400)
354 ZEND_RAW_FENTRY("zend_test_deprecated_attr", zif_zend_test_deprecated_attr, arginfo_zend_test_deprecated_attr, ZEND_ACC_DEPRECATED, NULL, NULL)
355#else
356 ZEND_RAW_FENTRY("zend_test_deprecated_attr", zif_zend_test_deprecated_attr, arginfo_zend_test_deprecated_attr, ZEND_ACC_DEPRECATED)
357#endif
358#if (PHP_VERSION_ID >= 80400)
359 ZEND_RAW_FENTRY("zend_test_aliased", zif_zend_test_void_return, arginfo_zend_test_aliased, 0, NULL, NULL)
360#else
361 ZEND_RAW_FENTRY("zend_test_aliased", zif_zend_test_void_return, arginfo_zend_test_aliased, 0)
362#endif
363#if (PHP_VERSION_ID >= 80400)
364 ZEND_RAW_FENTRY("zend_test_deprecated_aliased", zif_zend_test_void_return, arginfo_zend_test_deprecated_aliased, ZEND_ACC_DEPRECATED, NULL, NULL)
365#else
366 ZEND_RAW_FENTRY("zend_test_deprecated_aliased", zif_zend_test_void_return, arginfo_zend_test_deprecated_aliased, ZEND_ACC_DEPRECATED)
367#endif
368 ZEND_FE(zend_create_unterminated_string, arginfo_zend_create_unterminated_string)
369 ZEND_FE(zend_terminate_string, arginfo_zend_terminate_string)
370 ZEND_FE(zend_leak_variable, arginfo_zend_leak_variable)
371 ZEND_FE(zend_leak_bytes, arginfo_zend_leak_bytes)
372 ZEND_FE(zend_string_or_object, arginfo_zend_string_or_object)
373 ZEND_FE(zend_string_or_object_or_null, arginfo_zend_string_or_object_or_null)
374 ZEND_FE(zend_string_or_stdclass, arginfo_zend_string_or_stdclass)
375 ZEND_FE(zend_string_or_stdclass_or_null, arginfo_zend_string_or_stdclass_or_null)
376 ZEND_FE(zend_number_or_string, arginfo_zend_number_or_string)
377 ZEND_FE(zend_number_or_string_or_null, arginfo_zend_number_or_string_or_null)
378 ZEND_FE(zend_iterable, arginfo_zend_iterable)
379 ZEND_FE(zend_weakmap_attach, arginfo_zend_weakmap_attach)
380 ZEND_FE(zend_weakmap_remove, arginfo_zend_weakmap_remove)
382 ZEND_FE(zend_get_unit_enum, arginfo_zend_get_unit_enum)
383 ZEND_FE(zend_test_parameter_with_attribute, arginfo_zend_test_parameter_with_attribute)
385 ZEND_FE(zend_get_current_func_name, arginfo_zend_get_current_func_name)
386 ZEND_FE(zend_call_method, arginfo_zend_call_method)
387 ZEND_FE(zend_object_init_with_constructor, arginfo_zend_object_init_with_constructor)
388 ZEND_FE(zend_test_zend_ini_parse_quantity, arginfo_zend_test_zend_ini_parse_quantity)
391#if defined(ZEND_CHECK_STACK_LIMIT)
392 ZEND_FE(zend_test_zend_call_stack_get, arginfo_zend_test_zend_call_stack_get)
393 ZEND_FE(zend_test_zend_call_stack_use_all, arginfo_zend_test_zend_call_stack_use_all)
394#endif
395 ZEND_FE(zend_test_is_string_marked_as_valid_utf8, arginfo_zend_test_is_string_marked_as_valid_utf8)
396 ZEND_FE(zend_get_map_ptr_last, arginfo_zend_get_map_ptr_last)
397 ZEND_FE(zend_test_crash, arginfo_zend_test_crash)
398 ZEND_FE(zend_test_fill_packed_array, arginfo_zend_test_fill_packed_array)
399 ZEND_FE(zend_test_create_throwing_resource, arginfo_zend_test_create_throwing_resource)
400 ZEND_FE(get_open_basedir, arginfo_get_open_basedir)
401#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
402 ZEND_FE(zend_test_override_libxml_global_state, arginfo_zend_test_override_libxml_global_state)
403#endif
404 ZEND_FE(zend_test_is_pcre_bundled, arginfo_zend_test_is_pcre_bundled)
405#if defined(PHP_WIN32)
406 ZEND_FE(zend_test_set_fmode, arginfo_zend_test_set_fmode)
407#endif
408 ZEND_FE(zend_test_cast_fread, arginfo_zend_test_cast_fread)
409 ZEND_FE(zend_test_is_zend_ptr, arginfo_zend_test_is_zend_ptr)
410 ZEND_FE(zend_test_log_err_debug, arginfo_zend_test_log_err_debug)
411#if (PHP_VERSION_ID >= 80400)
412 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_func"), zif_ZendTestNS2_namespaced_func, arginfo_ZendTestNS2_namespaced_func, 0, NULL, NULL)
413#else
414 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_func"), zif_ZendTestNS2_namespaced_func, arginfo_ZendTestNS2_namespaced_func, 0)
415#endif
416#if (PHP_VERSION_ID >= 80400)
417 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_deprecated_func"), zif_ZendTestNS2_namespaced_deprecated_func, arginfo_ZendTestNS2_namespaced_deprecated_func, ZEND_ACC_DEPRECATED, NULL, NULL)
418#else
419 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_deprecated_func"), zif_ZendTestNS2_namespaced_deprecated_func, arginfo_ZendTestNS2_namespaced_deprecated_func, ZEND_ACC_DEPRECATED)
420#endif
421#if (PHP_VERSION_ID >= 80400)
422 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_namespaced_aliased_func, 0, NULL, NULL)
423#else
424 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_namespaced_aliased_func, 0)
425#endif
426#if (PHP_VERSION_ID >= 80400)
427 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_deprecated_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_namespaced_deprecated_aliased_func, ZEND_ACC_DEPRECATED, NULL, NULL)
428#else
429 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2", "namespaced_deprecated_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_namespaced_deprecated_aliased_func, ZEND_ACC_DEPRECATED)
430#endif
431#if (PHP_VERSION_ID >= 80400)
432 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_func"), zif_ZendTestNS2_ZendSubNS_namespaced_func, arginfo_ZendTestNS2_ZendSubNS_namespaced_func, 0, NULL, NULL)
433#else
434 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_func"), zif_ZendTestNS2_ZendSubNS_namespaced_func, arginfo_ZendTestNS2_ZendSubNS_namespaced_func, 0)
435#endif
436#if (PHP_VERSION_ID >= 80400)
437 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_deprecated_func"), zif_ZendTestNS2_ZendSubNS_namespaced_deprecated_func, arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_func, ZEND_ACC_DEPRECATED, NULL, NULL)
438#else
439 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_deprecated_func"), zif_ZendTestNS2_ZendSubNS_namespaced_deprecated_func, arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_func, ZEND_ACC_DEPRECATED)
440#endif
441#if (PHP_VERSION_ID >= 80400)
442 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_ZendSubNS_namespaced_aliased_func, 0, NULL, NULL)
443#else
444 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_ZendSubNS_namespaced_aliased_func, 0)
445#endif
446#if (PHP_VERSION_ID >= 80400)
447 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_deprecated_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_aliased_func, ZEND_ACC_DEPRECATED, NULL, NULL)
448#else
449 ZEND_RAW_FENTRY(ZEND_NS_NAME("ZendTestNS2\\ZendSubNS", "namespaced_deprecated_aliased_func"), zif_zend_test_void_return, arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_aliased_func, ZEND_ACC_DEPRECATED)
450#endif
452};
453
454static const zend_function_entry class__ZendTestClass_methods[] = {
457 ZEND_ME(_ZendTestClass, returnsStatic, arginfo_class__ZendTestClass_returnsStatic, ZEND_ACC_PUBLIC)
458 ZEND_ME(_ZendTestClass, returnsThrowable, arginfo_class__ZendTestClass_returnsThrowable, ZEND_ACC_PUBLIC)
459 ZEND_ME(_ZendTestClass, variadicTest, arginfo_class__ZendTestClass_variadicTest, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
460 ZEND_ME(_ZendTestClass, takesUnionType, arginfo_class__ZendTestClass_takesUnionType, ZEND_ACC_PUBLIC)
462};
463
464static const zend_function_entry class__ZendTestMagicCall_methods[] = {
465 ZEND_ME(_ZendTestMagicCall, __call, arginfo_class__ZendTestMagicCall___call, ZEND_ACC_PUBLIC)
467};
468
469static const zend_function_entry class__ZendTestMagicCallForward_methods[] = {
472};
473
474static const zend_function_entry class__ZendTestChildClass_methods[] = {
475 ZEND_ME(_ZendTestChildClass, returnsThrowable, arginfo_class__ZendTestChildClass_returnsThrowable, ZEND_ACC_PUBLIC)
477};
478
479static const zend_function_entry class_ZendAttributeTest_methods[] = {
482};
483
484static const zend_function_entry class__ZendTestTrait_methods[] = {
487};
488
489static const zend_function_entry class_ZendTestAttributeWithArguments_methods[] = {
490 ZEND_ME(ZendTestAttributeWithArguments, __construct, arginfo_class_ZendTestAttributeWithArguments___construct, ZEND_ACC_PUBLIC)
492};
493
494static const zend_function_entry class_ZendTestParameterAttribute_methods[] = {
495 ZEND_ME(ZendTestParameterAttribute, __construct, arginfo_class_ZendTestParameterAttribute___construct, ZEND_ACC_PUBLIC)
497};
498
499static const zend_function_entry class_ZendTestPropertyAttribute_methods[] = {
502};
503
504static const zend_function_entry class_ZendTestClassWithMethodWithParameterAttribute_methods[] = {
508};
509
510static const zend_function_entry class_ZendTestChildClassWithMethodWithParameterAttribute_methods[] = {
513};
514
515static const zend_function_entry class_ZendTestForbidDynamicCall_methods[] = {
519};
520
521static const zend_function_entry class_ZendTestNS_Foo_methods[] = {
522 ZEND_ME(ZendTestNS_Foo, method, arginfo_class_ZendTestNS_Foo_method, ZEND_ACC_PUBLIC)
524};
525
526static const zend_function_entry class_ZendTestNS_UnlikelyCompileError_methods[] = {
527 ZEND_ME(ZendTestNS_UnlikelyCompileError, method, arginfo_class_ZendTestNS_UnlikelyCompileError_method, ZEND_ACC_PUBLIC)
529};
530
531static const zend_function_entry class_ZendTestNS_NotUnlikelyCompileError_methods[] = {
532 ZEND_ME(ZendTestNS_NotUnlikelyCompileError, method, arginfo_class_ZendTestNS_NotUnlikelyCompileError_method, ZEND_ACC_PUBLIC)
534};
535
536static const zend_function_entry class_ZendTestNS2_Foo_methods[] = {
539};
540
541static const zend_function_entry class_ZendTestNS2_ZendSubNS_Foo_methods[] = {
544};
545
546static void register_test_symbols(int module_number)
547{
548 REGISTER_LONG_CONSTANT("ZEND_TEST_DEPRECATED", 42, CONST_PERSISTENT | CONST_DEPRECATED);
549 REGISTER_STRING_CONSTANT("ZEND_CONSTANT_A", "global", CONST_PERSISTENT);
550 REGISTER_STRING_CONSTANT("ZendTestNS2\\ZEND_CONSTANT_A", "namespaced", CONST_PERSISTENT);
551 REGISTER_STRING_CONSTANT("ZendTestNS2\\ZendSubNS\\ZEND_CONSTANT_A", "namespaced", CONST_PERSISTENT);
552
553
554 zend_string *attribute_name_Deprecated_func_zend_test_deprecated_attr_0 = zend_string_init_interned("Deprecated", sizeof("Deprecated") - 1, 1);
555 zend_attribute *attribute_Deprecated_func_zend_test_deprecated_attr_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "zend_test_deprecated_attr", sizeof("zend_test_deprecated_attr") - 1), attribute_name_Deprecated_func_zend_test_deprecated_attr_0, 1);
556 zend_string_release(attribute_name_Deprecated_func_zend_test_deprecated_attr_0);
557 zval attribute_Deprecated_func_zend_test_deprecated_attr_0_arg0;
558 zend_string *attribute_Deprecated_func_zend_test_deprecated_attr_0_arg0_str = zend_string_init("custom message", strlen("custom message"), 1);
559 ZVAL_STR(&attribute_Deprecated_func_zend_test_deprecated_attr_0_arg0, attribute_Deprecated_func_zend_test_deprecated_attr_0_arg0_str);
560 ZVAL_COPY_VALUE(&attribute_Deprecated_func_zend_test_deprecated_attr_0->args[0].value, &attribute_Deprecated_func_zend_test_deprecated_attr_0_arg0);
561 attribute_Deprecated_func_zend_test_deprecated_attr_0->args[0].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
562
563 zend_string *attribute_name_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0 = zend_string_init_interned("ZendTestParameterAttribute", sizeof("ZendTestParameterAttribute") - 1, 1);
564 zend_attribute *attribute_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0 = zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "zend_test_parameter_with_attribute", sizeof("zend_test_parameter_with_attribute") - 1), 0, attribute_name_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0, 1);
565 zend_string_release(attribute_name_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0);
566 zval attribute_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0_arg0;
567 zend_string *attribute_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0_arg0_str = zend_string_init("value1", strlen("value1"), 1);
568 ZVAL_STR(&attribute_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0_arg0, attribute_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0_arg0_str);
569 ZVAL_COPY_VALUE(&attribute_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0->args[0].value, &attribute_ZendTestParameterAttribute_func_zend_test_parameter_with_attribute_arg0_0_arg0);
570
571 zend_string *attribute_name_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0 = zend_string_init_interned("ZendTestAttributeWithArguments", sizeof("ZendTestAttributeWithArguments") - 1, 1);
572 zend_attribute *attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "zend_test_attribute_with_named_argument", sizeof("zend_test_attribute_with_named_argument") - 1), attribute_name_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0, 1);
573 zend_string_release(attribute_name_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0);
574 zval attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0_arg0;
575 zend_string *attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0_arg0_str = zend_string_init("foo", strlen("foo"), 1);
576 ZVAL_STR(&attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0_arg0, attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0_arg0_str);
577 ZVAL_COPY_VALUE(&attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0->args[0].value, &attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0_arg0);
578 attribute_ZendTestAttributeWithArguments_func_zend_test_attribute_with_named_argument_0->args[0].name = zend_string_init_interned("arg", sizeof("arg") - 1, 1);
579}
580
581static zend_class_entry *register_class__ZendTestInterface(void)
582{
583 zend_class_entry ce, *class_entry;
584
585 INIT_CLASS_ENTRY(ce, "_ZendTestInterface", NULL);
586 class_entry = zend_register_internal_interface(&ce);
587
588 zval const_DUMMY_value;
589 ZVAL_LONG(&const_DUMMY_value, 0);
590 zend_string *const_DUMMY_name = zend_string_init_interned("DUMMY", sizeof("DUMMY") - 1, 1);
591 zend_string *const_DUMMY_comment = zend_string_init_interned("/**\n * \"Lorem ipsum\"\n * @see https://www.php.net\n * @since 8.2\n */", 98, 1);
592 zend_declare_class_constant_ex(class_entry, const_DUMMY_name, &const_DUMMY_value, ZEND_ACC_PUBLIC, const_DUMMY_comment);
593 zend_string_release(const_DUMMY_name);
594
595 return class_entry;
596}
597
598static zend_class_entry *register_class__ZendTestClass(zend_class_entry *class_entry__ZendTestInterface)
599{
600 zend_class_entry ce, *class_entry;
601
602 INIT_CLASS_ENTRY(ce, "_ZendTestClass", class__ZendTestClass_methods);
603#if (PHP_VERSION_ID >= 80400)
604 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
605#else
606 class_entry = zend_register_internal_class_ex(&ce, NULL);
607#endif
608 zend_class_implements(class_entry, 1, class_entry__ZendTestInterface);
609 zend_register_class_alias("_ZendTestClassAlias", class_entry);
610
611 zval const_TYPED_CLASS_CONST1_value;
612 ZVAL_EMPTY_ARRAY(&const_TYPED_CLASS_CONST1_value);
613 zend_string *const_TYPED_CLASS_CONST1_name = zend_string_init_interned("TYPED_CLASS_CONST1", sizeof("TYPED_CLASS_CONST1") - 1, 1);
614#if (PHP_VERSION_ID >= 80300)
615 zend_declare_typed_class_constant(class_entry, const_TYPED_CLASS_CONST1_name, &const_TYPED_CLASS_CONST1_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
616#else
617 zend_declare_class_constant_ex(class_entry, const_TYPED_CLASS_CONST1_name, &const_TYPED_CLASS_CONST1_value, ZEND_ACC_PUBLIC, NULL);
618#endif
619 zend_string_release(const_TYPED_CLASS_CONST1_name);
620
621 zval const_TYPED_CLASS_CONST2_value;
622 ZVAL_LONG(&const_TYPED_CLASS_CONST2_value, 42);
623 zend_string *const_TYPED_CLASS_CONST2_name = zend_string_init_interned("TYPED_CLASS_CONST2", sizeof("TYPED_CLASS_CONST2") - 1, 1);
624#if (PHP_VERSION_ID >= 80300)
625 zend_declare_typed_class_constant(class_entry, const_TYPED_CLASS_CONST2_name, &const_TYPED_CLASS_CONST2_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG|MAY_BE_ARRAY));
626#else
627 zend_declare_class_constant_ex(class_entry, const_TYPED_CLASS_CONST2_name, &const_TYPED_CLASS_CONST2_value, ZEND_ACC_PUBLIC, NULL);
628#endif
629 zend_string_release(const_TYPED_CLASS_CONST2_name);
630
631 zval const_TYPED_CLASS_CONST3_value;
632 ZVAL_LONG(&const_TYPED_CLASS_CONST3_value, 1);
633 zend_string *const_TYPED_CLASS_CONST3_name = zend_string_init_interned("TYPED_CLASS_CONST3", sizeof("TYPED_CLASS_CONST3") - 1, 1);
634#if (PHP_VERSION_ID >= 80300)
635 zend_declare_typed_class_constant(class_entry, const_TYPED_CLASS_CONST3_name, &const_TYPED_CLASS_CONST3_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG|MAY_BE_STRING));
636#else
637 zend_declare_class_constant_ex(class_entry, const_TYPED_CLASS_CONST3_name, &const_TYPED_CLASS_CONST3_value, ZEND_ACC_PUBLIC, NULL);
638#endif
639 zend_string_release(const_TYPED_CLASS_CONST3_name);
640
641 zval const_ZEND_TEST_DEPRECATED_value;
642 ZVAL_LONG(&const_ZEND_TEST_DEPRECATED_value, 42);
643 zend_string *const_ZEND_TEST_DEPRECATED_name = zend_string_init_interned("ZEND_TEST_DEPRECATED", sizeof("ZEND_TEST_DEPRECATED") - 1, 1);
644#if (PHP_VERSION_ID >= 80300)
645 zend_declare_typed_class_constant(class_entry, const_ZEND_TEST_DEPRECATED_name, &const_ZEND_TEST_DEPRECATED_value, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
646#else
647 zend_declare_class_constant_ex(class_entry, const_ZEND_TEST_DEPRECATED_name, &const_ZEND_TEST_DEPRECATED_value, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED, NULL);
648#endif
649 zend_string_release(const_ZEND_TEST_DEPRECATED_name);
650
651 zval const_ZEND_TEST_DEPRECATED_ATTR_value;
652 ZVAL_LONG(&const_ZEND_TEST_DEPRECATED_ATTR_value, 42);
653 zend_string *const_ZEND_TEST_DEPRECATED_ATTR_name = zend_string_init_interned("ZEND_TEST_DEPRECATED_ATTR", sizeof("ZEND_TEST_DEPRECATED_ATTR") - 1, 1);
654#if (PHP_VERSION_ID >= 80300)
655 zend_class_constant *const_ZEND_TEST_DEPRECATED_ATTR = zend_declare_typed_class_constant(class_entry, const_ZEND_TEST_DEPRECATED_ATTR_name, &const_ZEND_TEST_DEPRECATED_ATTR_value, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
656#else
657 zend_class_constant *const_ZEND_TEST_DEPRECATED_ATTR = zend_declare_class_constant_ex(class_entry, const_ZEND_TEST_DEPRECATED_ATTR_name, &const_ZEND_TEST_DEPRECATED_ATTR_value, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED, NULL);
658#endif
659 zend_string_release(const_ZEND_TEST_DEPRECATED_ATTR_name);
660
661 zval property__StaticProp_default_value;
662 ZVAL_NULL(&property__StaticProp_default_value);
663 zend_string *property__StaticProp_name = zend_string_init("_StaticProp", sizeof("_StaticProp") - 1, 1);
664 zend_declare_typed_property(class_entry, property__StaticProp_name, &property__StaticProp_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
665 zend_string_release(property__StaticProp_name);
666
667 zval property_staticIntProp_default_value;
668 ZVAL_LONG(&property_staticIntProp_default_value, 123);
669 zend_string *property_staticIntProp_name = zend_string_init("staticIntProp", sizeof("staticIntProp") - 1, 1);
670 zend_declare_typed_property(class_entry, property_staticIntProp_name, &property_staticIntProp_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
671 zend_string_release(property_staticIntProp_name);
672
673 zval property_intProp_default_value;
674 ZVAL_LONG(&property_intProp_default_value, 123);
675 zend_string *property_intProp_name = zend_string_init("intProp", sizeof("intProp") - 1, 1);
676 zend_declare_typed_property(class_entry, property_intProp_name, &property_intProp_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
677 zend_string_release(property_intProp_name);
678
679 zval property_classProp_default_value;
680 ZVAL_NULL(&property_classProp_default_value);
681 zend_string *property_classProp_name = zend_string_init("classProp", sizeof("classProp") - 1, 1);
682 zend_string *property_classProp_class_stdClass = zend_string_init("stdClass", sizeof("stdClass")-1, 1);
683 zend_declare_typed_property(class_entry, property_classProp_name, &property_classProp_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_classProp_class_stdClass, 0, MAY_BE_NULL));
684 zend_string_release(property_classProp_name);
685
686 zval property_classUnionProp_default_value;
687 ZVAL_NULL(&property_classUnionProp_default_value);
688 zend_string *property_classUnionProp_name = zend_string_init("classUnionProp", sizeof("classUnionProp") - 1, 1);
689 zend_string *property_classUnionProp_class_stdClass = zend_string_init("stdClass", sizeof("stdClass") - 1, 1);
690 zend_string *property_classUnionProp_class_Iterator = zend_string_init("Iterator", sizeof("Iterator") - 1, 1);
691 zend_type_list *property_classUnionProp_type_list = malloc(ZEND_TYPE_LIST_SIZE(2));
692 property_classUnionProp_type_list->num_types = 2;
693 property_classUnionProp_type_list->types[0] = (zend_type) ZEND_TYPE_INIT_CLASS(property_classUnionProp_class_stdClass, 0, 0);
694 property_classUnionProp_type_list->types[1] = (zend_type) ZEND_TYPE_INIT_CLASS(property_classUnionProp_class_Iterator, 0, 0);
695 zend_type property_classUnionProp_type = ZEND_TYPE_INIT_UNION(property_classUnionProp_type_list, MAY_BE_NULL);
696 zend_declare_typed_property(class_entry, property_classUnionProp_name, &property_classUnionProp_default_value, ZEND_ACC_PUBLIC, NULL, property_classUnionProp_type);
697 zend_string_release(property_classUnionProp_name);
698
699 zval property_classIntersectionProp_default_value;
700 ZVAL_UNDEF(&property_classIntersectionProp_default_value);
701 zend_string *property_classIntersectionProp_name = zend_string_init("classIntersectionProp", sizeof("classIntersectionProp") - 1, 1);
702 zend_string *property_classIntersectionProp_class_Traversable = zend_string_init("Traversable", sizeof("Traversable") - 1, 1);
703 zend_string *property_classIntersectionProp_class_Countable = zend_string_init("Countable", sizeof("Countable") - 1, 1);
704 zend_type_list *property_classIntersectionProp_type_list = malloc(ZEND_TYPE_LIST_SIZE(2));
705 property_classIntersectionProp_type_list->num_types = 2;
706 property_classIntersectionProp_type_list->types[0] = (zend_type) ZEND_TYPE_INIT_CLASS(property_classIntersectionProp_class_Traversable, 0, 0);
707 property_classIntersectionProp_type_list->types[1] = (zend_type) ZEND_TYPE_INIT_CLASS(property_classIntersectionProp_class_Countable, 0, 0);
708 zend_type property_classIntersectionProp_type = ZEND_TYPE_INIT_INTERSECTION(property_classIntersectionProp_type_list, 0);
709 zend_declare_typed_property(class_entry, property_classIntersectionProp_name, &property_classIntersectionProp_default_value, ZEND_ACC_PUBLIC, NULL, property_classIntersectionProp_type);
710 zend_string_release(property_classIntersectionProp_name);
711
712 zval property_readonlyProp_default_value;
713 ZVAL_UNDEF(&property_readonlyProp_default_value);
714 zend_string *property_readonlyProp_name = zend_string_init("readonlyProp", sizeof("readonlyProp") - 1, 1);
715#if (PHP_VERSION_ID >= 80100)
716 zend_declare_typed_property(class_entry, property_readonlyProp_name, &property_readonlyProp_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
717#elif (PHP_VERSION_ID >= 80000)
718 zend_declare_typed_property(class_entry, property_readonlyProp_name, &property_readonlyProp_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
719#endif
720 zend_string_release(property_readonlyProp_name);
721
722
723 zend_string *attribute_name_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0 = zend_string_init_interned("Deprecated", sizeof("Deprecated") - 1, 1);
724 zend_attribute *attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0 = zend_add_class_constant_attribute(class_entry, const_ZEND_TEST_DEPRECATED_ATTR, attribute_name_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0, 1);
725 zend_string_release(attribute_name_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0);
726 zval attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0_arg0;
727 zend_string *attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0_arg0_str = zend_string_init("custom message", strlen("custom message"), 1);
728 ZVAL_STR(&attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0_arg0, attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0_arg0_str);
729 ZVAL_COPY_VALUE(&attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0->args[0].value, &attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0_arg0);
730 attribute_Deprecated_const_ZEND_TEST_DEPRECATED_ATTR_0->args[0].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
731
732 return class_entry;
733}
734
735static zend_class_entry *register_class__ZendTestMagicCall(void)
736{
737 zend_class_entry ce, *class_entry;
738
739 INIT_CLASS_ENTRY(ce, "_ZendTestMagicCall", class__ZendTestMagicCall_methods);
740#if (PHP_VERSION_ID >= 80400)
741 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
742#else
743 class_entry = zend_register_internal_class_ex(&ce, NULL);
744#endif
745
746 return class_entry;
747}
748
749static zend_class_entry *register_class__ZendTestMagicCallForward(void)
750{
751 zend_class_entry ce, *class_entry;
752
753 INIT_CLASS_ENTRY(ce, "_ZendTestMagicCallForward", class__ZendTestMagicCallForward_methods);
754#if (PHP_VERSION_ID >= 80400)
755 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
756#else
757 class_entry = zend_register_internal_class_ex(&ce, NULL);
758#endif
759
760 return class_entry;
761}
762
763static zend_class_entry *register_class__ZendTestChildClass(zend_class_entry *class_entry__ZendTestClass)
764{
765 zend_class_entry ce, *class_entry;
766
767 INIT_CLASS_ENTRY(ce, "_ZendTestChildClass", class__ZendTestChildClass_methods);
768#if (PHP_VERSION_ID >= 80400)
769 class_entry = zend_register_internal_class_with_flags(&ce, class_entry__ZendTestClass, 0);
770#else
771 class_entry = zend_register_internal_class_ex(&ce, class_entry__ZendTestClass);
772#endif
773
774 return class_entry;
775}
776
777static zend_class_entry *register_class_ZendTestGenStubFlagCompatibilityTest(void)
778{
779 zend_class_entry ce, *class_entry;
780
781 INIT_CLASS_ENTRY(ce, "ZendTestGenStubFlagCompatibilityTest", NULL);
782#if (PHP_VERSION_ID >= 80400)
784#else
785 class_entry = zend_register_internal_class_ex(&ce, NULL);
786#if (PHP_VERSION_ID >= 80100)
788#elif (PHP_VERSION_ID >= 80000)
789 class_entry->ce_flags |= ZEND_ACC_FINAL;
790#endif
791#endif
792
793 return class_entry;
794}
795
796static zend_class_entry *register_class_ZendAttributeTest(void)
797{
798 zend_class_entry ce, *class_entry;
799
800 INIT_CLASS_ENTRY(ce, "ZendAttributeTest", class_ZendAttributeTest_methods);
801#if (PHP_VERSION_ID >= 80400)
802 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
803#else
804 class_entry = zend_register_internal_class_ex(&ce, NULL);
805#endif
806
807 zval const_TEST_CONST_value;
808 ZVAL_LONG(&const_TEST_CONST_value, 1);
809 zend_string *const_TEST_CONST_name = zend_string_init_interned("TEST_CONST", sizeof("TEST_CONST") - 1, 1);
810 zend_class_constant *const_TEST_CONST = zend_declare_class_constant_ex(class_entry, const_TEST_CONST_name, &const_TEST_CONST_value, ZEND_ACC_PUBLIC, NULL);
811 zend_string_release(const_TEST_CONST_name);
812
813 zval property_testProp_default_value;
814 ZVAL_NULL(&property_testProp_default_value);
815 zend_string *property_testProp_name = zend_string_init("testProp", sizeof("testProp") - 1, 1);
816 zend_property_info *property_testProp = zend_declare_typed_property(class_entry, property_testProp_name, &property_testProp_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
817 zend_string_release(property_testProp_name);
818
819
820 zend_string *attribute_name_ZendTestRepeatableAttribute_const_TEST_CONST_0 = zend_string_init_interned("ZendTestRepeatableAttribute", sizeof("ZendTestRepeatableAttribute") - 1, 1);
821 zend_add_class_constant_attribute(class_entry, const_TEST_CONST, attribute_name_ZendTestRepeatableAttribute_const_TEST_CONST_0, 0);
822 zend_string_release(attribute_name_ZendTestRepeatableAttribute_const_TEST_CONST_0);
823
824 zend_string *attribute_name_ZendTestRepeatableAttribute_const_TEST_CONST_1 = zend_string_init_interned("ZendTestRepeatableAttribute", sizeof("ZendTestRepeatableAttribute") - 1, 1);
825 zend_add_class_constant_attribute(class_entry, const_TEST_CONST, attribute_name_ZendTestRepeatableAttribute_const_TEST_CONST_1, 0);
826 zend_string_release(attribute_name_ZendTestRepeatableAttribute_const_TEST_CONST_1);
827
828
829 zend_string *attribute_name_ZendTestRepeatableAttribute_property_testProp_0 = zend_string_init_interned("ZendTestRepeatableAttribute", sizeof("ZendTestRepeatableAttribute") - 1, 1);
830 zend_add_property_attribute(class_entry, property_testProp, attribute_name_ZendTestRepeatableAttribute_property_testProp_0, 0);
831 zend_string_release(attribute_name_ZendTestRepeatableAttribute_property_testProp_0);
832
833 zend_string *attribute_name_ZendTestPropertyAttribute_property_testProp_1 = zend_string_init_interned("ZendTestPropertyAttribute", sizeof("ZendTestPropertyAttribute") - 1, 1);
834 zend_attribute *attribute_ZendTestPropertyAttribute_property_testProp_1 = zend_add_property_attribute(class_entry, property_testProp, attribute_name_ZendTestPropertyAttribute_property_testProp_1, 1);
835 zend_string_release(attribute_name_ZendTestPropertyAttribute_property_testProp_1);
836 zval attribute_ZendTestPropertyAttribute_property_testProp_1_arg0;
837 zend_string *attribute_ZendTestPropertyAttribute_property_testProp_1_arg0_str = zend_string_init("testProp", strlen("testProp"), 1);
838 ZVAL_STR(&attribute_ZendTestPropertyAttribute_property_testProp_1_arg0, attribute_ZendTestPropertyAttribute_property_testProp_1_arg0_str);
839 ZVAL_COPY_VALUE(&attribute_ZendTestPropertyAttribute_property_testProp_1->args[0].value, &attribute_ZendTestPropertyAttribute_property_testProp_1_arg0);
840
841
842 zend_string *attribute_name_ZendTestAttribute_func_testmethod_0 = zend_string_init_interned("ZendTestAttribute", sizeof("ZendTestAttribute") - 1, 1);
843 zend_add_function_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "testmethod", sizeof("testmethod") - 1), attribute_name_ZendTestAttribute_func_testmethod_0, 0);
844 zend_string_release(attribute_name_ZendTestAttribute_func_testmethod_0);
845
846 return class_entry;
847}
848
849static zend_class_entry *register_class__ZendTestTrait(void)
850{
851 zend_class_entry ce, *class_entry;
852
853 INIT_CLASS_ENTRY(ce, "_ZendTestTrait", class__ZendTestTrait_methods);
854#if (PHP_VERSION_ID >= 80400)
856#else
857 class_entry = zend_register_internal_class_ex(&ce, NULL);
858 class_entry->ce_flags |= ZEND_ACC_TRAIT;
859#endif
860
861 zval property_testProp_default_value;
862 ZVAL_NULL(&property_testProp_default_value);
863 zend_string *property_testProp_name = zend_string_init("testProp", sizeof("testProp") - 1, 1);
864 zend_declare_typed_property(class_entry, property_testProp_name, &property_testProp_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
865 zend_string_release(property_testProp_name);
866
867 zval property_classUnionProp_default_value;
868 ZVAL_UNDEF(&property_classUnionProp_default_value);
869 zend_string *property_classUnionProp_name = zend_string_init("classUnionProp", sizeof("classUnionProp") - 1, 1);
870 zend_string *property_classUnionProp_class_Traversable = zend_string_init("Traversable", sizeof("Traversable") - 1, 1);
871 zend_string *property_classUnionProp_class_Countable = zend_string_init("Countable", sizeof("Countable") - 1, 1);
872 zend_type_list *property_classUnionProp_type_list = malloc(ZEND_TYPE_LIST_SIZE(2));
873 property_classUnionProp_type_list->num_types = 2;
874 property_classUnionProp_type_list->types[0] = (zend_type) ZEND_TYPE_INIT_CLASS(property_classUnionProp_class_Traversable, 0, 0);
875 property_classUnionProp_type_list->types[1] = (zend_type) ZEND_TYPE_INIT_CLASS(property_classUnionProp_class_Countable, 0, 0);
876 zend_type property_classUnionProp_type = ZEND_TYPE_INIT_UNION(property_classUnionProp_type_list, 0);
877 zend_declare_typed_property(class_entry, property_classUnionProp_name, &property_classUnionProp_default_value, ZEND_ACC_PUBLIC, NULL, property_classUnionProp_type);
878 zend_string_release(property_classUnionProp_name);
879
880 return class_entry;
881}
882
883static zend_class_entry *register_class_ZendTestAttribute(void)
884{
885 zend_class_entry ce, *class_entry;
886
887 INIT_CLASS_ENTRY(ce, "ZendTestAttribute", NULL);
888#if (PHP_VERSION_ID >= 80400)
890#else
891 class_entry = zend_register_internal_class_ex(&ce, NULL);
892 class_entry->ce_flags |= ZEND_ACC_FINAL;
893#endif
894
895 zend_string *attribute_name_Attribute_class_ZendTestAttribute_0 = zend_string_init_interned("Attribute", sizeof("Attribute") - 1, 1);
896 zend_attribute *attribute_Attribute_class_ZendTestAttribute_0 = zend_add_class_attribute(class_entry, attribute_name_Attribute_class_ZendTestAttribute_0, 1);
897 zend_string_release(attribute_name_Attribute_class_ZendTestAttribute_0);
898 zval attribute_Attribute_class_ZendTestAttribute_0_arg0;
899 ZVAL_LONG(&attribute_Attribute_class_ZendTestAttribute_0_arg0, ZEND_ATTRIBUTE_TARGET_ALL);
900 ZVAL_COPY_VALUE(&attribute_Attribute_class_ZendTestAttribute_0->args[0].value, &attribute_Attribute_class_ZendTestAttribute_0_arg0);
901
902 return class_entry;
903}
904
905static zend_class_entry *register_class_ZendTestAttributeWithArguments(void)
906{
907 zend_class_entry ce, *class_entry;
908
909 INIT_CLASS_ENTRY(ce, "ZendTestAttributeWithArguments", class_ZendTestAttributeWithArguments_methods);
910#if (PHP_VERSION_ID >= 80400)
912#else
913 class_entry = zend_register_internal_class_ex(&ce, NULL);
914 class_entry->ce_flags |= ZEND_ACC_FINAL;
915#endif
916
917 zval property_arg_default_value;
918 ZVAL_UNDEF(&property_arg_default_value);
919 zend_string *property_arg_name = zend_string_init("arg", sizeof("arg") - 1, 1);
920#if (PHP_VERSION_ID >= 80100)
921 zend_declare_typed_property(class_entry, property_arg_name, &property_arg_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
922#elif (PHP_VERSION_ID >= 80000)
923 zend_declare_typed_property(class_entry, property_arg_name, &property_arg_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
924#endif
925 zend_string_release(property_arg_name);
926
927 zend_string *attribute_name_Attribute_class_ZendTestAttributeWithArguments_0 = zend_string_init_interned("Attribute", sizeof("Attribute") - 1, 1);
928 zend_attribute *attribute_Attribute_class_ZendTestAttributeWithArguments_0 = zend_add_class_attribute(class_entry, attribute_name_Attribute_class_ZendTestAttributeWithArguments_0, 1);
929 zend_string_release(attribute_name_Attribute_class_ZendTestAttributeWithArguments_0);
930 zval attribute_Attribute_class_ZendTestAttributeWithArguments_0_arg0;
931 ZVAL_LONG(&attribute_Attribute_class_ZendTestAttributeWithArguments_0_arg0, ZEND_ATTRIBUTE_TARGET_ALL);
932 ZVAL_COPY_VALUE(&attribute_Attribute_class_ZendTestAttributeWithArguments_0->args[0].value, &attribute_Attribute_class_ZendTestAttributeWithArguments_0_arg0);
933
934 return class_entry;
935}
936
937static zend_class_entry *register_class_ZendTestRepeatableAttribute(void)
938{
939 zend_class_entry ce, *class_entry;
940
941 INIT_CLASS_ENTRY(ce, "ZendTestRepeatableAttribute", NULL);
942#if (PHP_VERSION_ID >= 80400)
944#else
945 class_entry = zend_register_internal_class_ex(&ce, NULL);
946 class_entry->ce_flags |= ZEND_ACC_FINAL;
947#endif
948
949 zend_string *attribute_name_Attribute_class_ZendTestRepeatableAttribute_0 = zend_string_init_interned("Attribute", sizeof("Attribute") - 1, 1);
950 zend_attribute *attribute_Attribute_class_ZendTestRepeatableAttribute_0 = zend_add_class_attribute(class_entry, attribute_name_Attribute_class_ZendTestRepeatableAttribute_0, 1);
951 zend_string_release(attribute_name_Attribute_class_ZendTestRepeatableAttribute_0);
952 zval attribute_Attribute_class_ZendTestRepeatableAttribute_0_arg0;
953 ZVAL_LONG(&attribute_Attribute_class_ZendTestRepeatableAttribute_0_arg0, ZEND_ATTRIBUTE_TARGET_ALL | ZEND_ATTRIBUTE_IS_REPEATABLE);
954 ZVAL_COPY_VALUE(&attribute_Attribute_class_ZendTestRepeatableAttribute_0->args[0].value, &attribute_Attribute_class_ZendTestRepeatableAttribute_0_arg0);
955
956 return class_entry;
957}
958
959static zend_class_entry *register_class_ZendTestParameterAttribute(void)
960{
961 zend_class_entry ce, *class_entry;
962
963 INIT_CLASS_ENTRY(ce, "ZendTestParameterAttribute", class_ZendTestParameterAttribute_methods);
964#if (PHP_VERSION_ID >= 80400)
966#else
967 class_entry = zend_register_internal_class_ex(&ce, NULL);
968 class_entry->ce_flags |= ZEND_ACC_FINAL;
969#endif
970
971 zval property_parameter_default_value;
972 ZVAL_UNDEF(&property_parameter_default_value);
973 zend_string *property_parameter_name = zend_string_init("parameter", sizeof("parameter") - 1, 1);
974 zend_declare_typed_property(class_entry, property_parameter_name, &property_parameter_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
975 zend_string_release(property_parameter_name);
976
977 zend_string *attribute_name_Attribute_class_ZendTestParameterAttribute_0 = zend_string_init_interned("Attribute", sizeof("Attribute") - 1, 1);
978 zend_attribute *attribute_Attribute_class_ZendTestParameterAttribute_0 = zend_add_class_attribute(class_entry, attribute_name_Attribute_class_ZendTestParameterAttribute_0, 1);
979 zend_string_release(attribute_name_Attribute_class_ZendTestParameterAttribute_0);
980 zval attribute_Attribute_class_ZendTestParameterAttribute_0_arg0;
981 ZVAL_LONG(&attribute_Attribute_class_ZendTestParameterAttribute_0_arg0, ZEND_ATTRIBUTE_TARGET_PARAMETER);
982 ZVAL_COPY_VALUE(&attribute_Attribute_class_ZendTestParameterAttribute_0->args[0].value, &attribute_Attribute_class_ZendTestParameterAttribute_0_arg0);
983
984 return class_entry;
985}
986
987static zend_class_entry *register_class_ZendTestPropertyAttribute(void)
988{
989 zend_class_entry ce, *class_entry;
990
991 INIT_CLASS_ENTRY(ce, "ZendTestPropertyAttribute", class_ZendTestPropertyAttribute_methods);
992#if (PHP_VERSION_ID >= 80400)
994#else
995 class_entry = zend_register_internal_class_ex(&ce, NULL);
996 class_entry->ce_flags |= ZEND_ACC_FINAL;
997#endif
998#if (PHP_VERSION_ID >= 80400)
999 class_entry->doc_comment = zend_string_init_interned("/**\n * \"Lorem ipsum\"\n * @see https://www.php.net\n * @since 8.1\n */", 82, 1);
1000#endif
1001
1002 zval property_parameter_default_value;
1003 ZVAL_UNDEF(&property_parameter_default_value);
1004 zend_string *property_parameter_name = zend_string_init("parameter", sizeof("parameter") - 1, 1);
1005 zend_string *property_parameter_comment = zend_string_init_interned("/**\n * \"Lorem ipsum\"\n * @see https://www.php.net\n * @since 8.4\n */", 98, 1);
1006 zend_declare_typed_property(class_entry, property_parameter_name, &property_parameter_default_value, ZEND_ACC_PUBLIC, property_parameter_comment, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1007 zend_string_release(property_parameter_name);
1008
1009 zend_string *attribute_name_Attribute_class_ZendTestPropertyAttribute_0 = zend_string_init_interned("Attribute", sizeof("Attribute") - 1, 1);
1010 zend_attribute *attribute_Attribute_class_ZendTestPropertyAttribute_0 = zend_add_class_attribute(class_entry, attribute_name_Attribute_class_ZendTestPropertyAttribute_0, 1);
1011 zend_string_release(attribute_name_Attribute_class_ZendTestPropertyAttribute_0);
1012 zval attribute_Attribute_class_ZendTestPropertyAttribute_0_arg0;
1013 ZVAL_LONG(&attribute_Attribute_class_ZendTestPropertyAttribute_0_arg0, ZEND_ATTRIBUTE_TARGET_PROPERTY);
1014 ZVAL_COPY_VALUE(&attribute_Attribute_class_ZendTestPropertyAttribute_0->args[0].value, &attribute_Attribute_class_ZendTestPropertyAttribute_0_arg0);
1015
1016 return class_entry;
1017}
1018
1019static zend_class_entry *register_class_ZendTestClassWithMethodWithParameterAttribute(void)
1020{
1021 zend_class_entry ce, *class_entry;
1022
1023 INIT_CLASS_ENTRY(ce, "ZendTestClassWithMethodWithParameterAttribute", class_ZendTestClassWithMethodWithParameterAttribute_methods);
1024#if (PHP_VERSION_ID >= 80400)
1025 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
1026#else
1027 class_entry = zend_register_internal_class_ex(&ce, NULL);
1028#endif
1029
1030
1031 zend_string *attribute_name_ZendTestParameterAttribute_func_no_override_arg0_0 = zend_string_init_interned("ZendTestParameterAttribute", sizeof("ZendTestParameterAttribute") - 1, 1);
1032 zend_attribute *attribute_ZendTestParameterAttribute_func_no_override_arg0_0 = zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "no_override", sizeof("no_override") - 1), 0, attribute_name_ZendTestParameterAttribute_func_no_override_arg0_0, 1);
1033 zend_string_release(attribute_name_ZendTestParameterAttribute_func_no_override_arg0_0);
1034 zval attribute_ZendTestParameterAttribute_func_no_override_arg0_0_arg0;
1035 zend_string *attribute_ZendTestParameterAttribute_func_no_override_arg0_0_arg0_str = zend_string_init("value2", strlen("value2"), 1);
1036 ZVAL_STR(&attribute_ZendTestParameterAttribute_func_no_override_arg0_0_arg0, attribute_ZendTestParameterAttribute_func_no_override_arg0_0_arg0_str);
1037 ZVAL_COPY_VALUE(&attribute_ZendTestParameterAttribute_func_no_override_arg0_0->args[0].value, &attribute_ZendTestParameterAttribute_func_no_override_arg0_0_arg0);
1038
1039 zend_string *attribute_name_ZendTestParameterAttribute_func_override_arg0_0 = zend_string_init_interned("ZendTestParameterAttribute", sizeof("ZendTestParameterAttribute") - 1, 1);
1040 zend_attribute *attribute_ZendTestParameterAttribute_func_override_arg0_0 = zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "override", sizeof("override") - 1), 0, attribute_name_ZendTestParameterAttribute_func_override_arg0_0, 1);
1041 zend_string_release(attribute_name_ZendTestParameterAttribute_func_override_arg0_0);
1042 zval attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0;
1043 zend_string *attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0_str = zend_string_init("value3", strlen("value3"), 1);
1044 ZVAL_STR(&attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0, attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0_str);
1045 ZVAL_COPY_VALUE(&attribute_ZendTestParameterAttribute_func_override_arg0_0->args[0].value, &attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0);
1046
1047 return class_entry;
1048}
1049
1050static zend_class_entry *register_class_ZendTestChildClassWithMethodWithParameterAttribute(zend_class_entry *class_entry_ZendTestClassWithMethodWithParameterAttribute)
1051{
1052 zend_class_entry ce, *class_entry;
1053
1054 INIT_CLASS_ENTRY(ce, "ZendTestChildClassWithMethodWithParameterAttribute", class_ZendTestChildClassWithMethodWithParameterAttribute_methods);
1055#if (PHP_VERSION_ID >= 80400)
1056 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_ZendTestClassWithMethodWithParameterAttribute, 0);
1057#else
1058 class_entry = zend_register_internal_class_ex(&ce, class_entry_ZendTestClassWithMethodWithParameterAttribute);
1059#endif
1060
1061
1062 zend_string *attribute_name_ZendTestParameterAttribute_func_override_arg0_0 = zend_string_init_interned("ZendTestParameterAttribute", sizeof("ZendTestParameterAttribute") - 1, 1);
1063 zend_attribute *attribute_ZendTestParameterAttribute_func_override_arg0_0 = zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "override", sizeof("override") - 1), 0, attribute_name_ZendTestParameterAttribute_func_override_arg0_0, 1);
1064 zend_string_release(attribute_name_ZendTestParameterAttribute_func_override_arg0_0);
1065 zval attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0;
1066 zend_string *attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0_str = zend_string_init("value4", strlen("value4"), 1);
1067 ZVAL_STR(&attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0, attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0_str);
1068 ZVAL_COPY_VALUE(&attribute_ZendTestParameterAttribute_func_override_arg0_0->args[0].value, &attribute_ZendTestParameterAttribute_func_override_arg0_0_arg0);
1069
1070 return class_entry;
1071}
1072
1073static zend_class_entry *register_class_ZendTestClassWithPropertyAttribute(void)
1074{
1075 zend_class_entry ce, *class_entry;
1076
1077 INIT_CLASS_ENTRY(ce, "ZendTestClassWithPropertyAttribute", NULL);
1078#if (PHP_VERSION_ID >= 80400)
1079 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
1080#else
1081 class_entry = zend_register_internal_class_ex(&ce, NULL);
1082#endif
1083
1084 zval property_attributed_default_value;
1085 ZVAL_UNDEF(&property_attributed_default_value);
1086 zend_string *property_attributed_name = zend_string_init("attributed", sizeof("attributed") - 1, 1);
1087 zend_property_info *property_attributed = zend_declare_typed_property(class_entry, property_attributed_name, &property_attributed_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1088 zend_string_release(property_attributed_name);
1089
1090
1091 zend_string *attribute_name_ZendTestAttribute_property_attributed_0 = zend_string_init_interned("ZendTestAttribute", sizeof("ZendTestAttribute") - 1, 1);
1092 zend_add_property_attribute(class_entry, property_attributed, attribute_name_ZendTestAttribute_property_attributed_0, 0);
1093 zend_string_release(attribute_name_ZendTestAttribute_property_attributed_0);
1094
1095 return class_entry;
1096}
1097
1098static zend_class_entry *register_class_ZendTestForbidDynamicCall(void)
1099{
1100 zend_class_entry ce, *class_entry;
1101
1102 INIT_CLASS_ENTRY(ce, "ZendTestForbidDynamicCall", class_ZendTestForbidDynamicCall_methods);
1103#if (PHP_VERSION_ID >= 80400)
1105#else
1106 class_entry = zend_register_internal_class_ex(&ce, NULL);
1107 class_entry->ce_flags |= ZEND_ACC_FINAL;
1108#endif
1109
1110 return class_entry;
1111}
1112
1113#if (PHP_VERSION_ID >= 80100)
1114static zend_class_entry *register_class_ZendTestUnitEnum(void)
1115{
1116 zend_class_entry *class_entry = zend_register_internal_enum("ZendTestUnitEnum", IS_UNDEF, NULL);
1117
1118 zend_enum_add_case_cstr(class_entry, "Foo", NULL);
1119
1120 zend_enum_add_case_cstr(class_entry, "Bar", NULL);
1121
1122 return class_entry;
1123}
1124#endif
1125
1126#if (PHP_VERSION_ID >= 80100)
1127static zend_class_entry *register_class_ZendTestStringEnum(void)
1128{
1129 zend_class_entry *class_entry = zend_register_internal_enum("ZendTestStringEnum", IS_STRING, NULL);
1130
1131 zval enum_case_Foo_value;
1132 zend_string *enum_case_Foo_value_str = zend_string_init("Test1", strlen("Test1"), 1);
1133 ZVAL_STR(&enum_case_Foo_value, enum_case_Foo_value_str);
1134 zend_enum_add_case_cstr(class_entry, "Foo", &enum_case_Foo_value);
1135
1136 zval enum_case_Bar_value;
1137 zend_string *enum_case_Bar_value_str = zend_string_init("Test2", strlen("Test2"), 1);
1138 ZVAL_STR(&enum_case_Bar_value, enum_case_Bar_value_str);
1139 zend_enum_add_case_cstr(class_entry, "Bar", &enum_case_Bar_value);
1140
1141 zval enum_case_Baz_value;
1142 zend_string *enum_case_Baz_value_str = zend_string_init("Test2\\a", strlen("Test2\\a"), 1);
1143 ZVAL_STR(&enum_case_Baz_value, enum_case_Baz_value_str);
1144 zend_enum_add_case_cstr(class_entry, "Baz", &enum_case_Baz_value);
1145
1146 zval enum_case_FortyTwo_value;
1147 zend_string *enum_case_FortyTwo_value_str = zend_string_init("42", strlen("42"), 1);
1148 ZVAL_STR(&enum_case_FortyTwo_value, enum_case_FortyTwo_value_str);
1149 zend_enum_add_case_cstr(class_entry, "FortyTwo", &enum_case_FortyTwo_value);
1150
1151 return class_entry;
1152}
1153#endif
1154
1155#if (PHP_VERSION_ID >= 80100)
1156static zend_class_entry *register_class_ZendTestIntEnum(void)
1157{
1158 zend_class_entry *class_entry = zend_register_internal_enum("ZendTestIntEnum", IS_LONG, NULL);
1159
1160 zval enum_case_Foo_value;
1161 ZVAL_LONG(&enum_case_Foo_value, 1);
1162 zend_enum_add_case_cstr(class_entry, "Foo", &enum_case_Foo_value);
1163
1164 zval enum_case_Bar_value;
1165 ZVAL_LONG(&enum_case_Bar_value, 3);
1166 zend_enum_add_case_cstr(class_entry, "Bar", &enum_case_Bar_value);
1167
1168 zval enum_case_Baz_value;
1169 ZVAL_LONG(&enum_case_Baz_value, -1);
1170 zend_enum_add_case_cstr(class_entry, "Baz", &enum_case_Baz_value);
1171
1172 return class_entry;
1173}
1174#endif
1175
1176static zend_class_entry *register_class_ZendTestNS_Foo(void)
1177{
1178 zend_class_entry ce, *class_entry;
1179
1180 INIT_NS_CLASS_ENTRY(ce, "ZendTestNS", "Foo", class_ZendTestNS_Foo_methods);
1181#if (PHP_VERSION_ID >= 80400)
1182 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
1183#else
1184 class_entry = zend_register_internal_class_ex(&ce, NULL);
1185#endif
1186
1187 return class_entry;
1188}
1189
1190static zend_class_entry *register_class_ZendTestNS_UnlikelyCompileError(void)
1191{
1192 zend_class_entry ce, *class_entry;
1193
1194 INIT_NS_CLASS_ENTRY(ce, "ZendTestNS", "UnlikelyCompileError", class_ZendTestNS_UnlikelyCompileError_methods);
1195#if (PHP_VERSION_ID >= 80400)
1196 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
1197#else
1198 class_entry = zend_register_internal_class_ex(&ce, NULL);
1199#endif
1200
1201 return class_entry;
1202}
1203
1204static zend_class_entry *register_class_ZendTestNS_NotUnlikelyCompileError(void)
1205{
1206 zend_class_entry ce, *class_entry;
1207
1208 INIT_NS_CLASS_ENTRY(ce, "ZendTestNS", "NotUnlikelyCompileError", class_ZendTestNS_NotUnlikelyCompileError_methods);
1209#if (PHP_VERSION_ID >= 80400)
1210 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
1211#else
1212 class_entry = zend_register_internal_class_ex(&ce, NULL);
1213#endif
1214
1215 return class_entry;
1216}
1217
1218static zend_class_entry *register_class_ZendTestNS2_Foo(void)
1219{
1220 zend_class_entry ce, *class_entry;
1221
1222 INIT_NS_CLASS_ENTRY(ce, "ZendTestNS2", "Foo", class_ZendTestNS2_Foo_methods);
1223#if (PHP_VERSION_ID >= 80400)
1224 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
1225#else
1226 class_entry = zend_register_internal_class_ex(&ce, NULL);
1227#endif
1228
1229 zval property_foo_default_value;
1230 ZVAL_UNDEF(&property_foo_default_value);
1231 zend_string *property_foo_name = zend_string_init("foo", sizeof("foo") - 1, 1);
1232 zend_string *property_foo_class_ZendTestNS2_ZendSubNS_Foo = zend_string_init("ZendTestNS2\\ZendSubNS\\Foo", sizeof("ZendTestNS2\\ZendSubNS\\Foo")-1, 1);
1233 zend_declare_typed_property(class_entry, property_foo_name, &property_foo_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_foo_class_ZendTestNS2_ZendSubNS_Foo, 0, 0));
1234 zend_string_release(property_foo_name);
1235
1236 return class_entry;
1237}
1238
1239static zend_class_entry *register_class_ZendTestNS2_ZendSubNS_Foo(void)
1240{
1241 zend_class_entry ce, *class_entry;
1242
1243 INIT_NS_CLASS_ENTRY(ce, "ZendTestNS2\\ZendSubNS", "Foo", class_ZendTestNS2_ZendSubNS_Foo_methods);
1244#if (PHP_VERSION_ID >= 80400)
1245 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
1246#else
1247 class_entry = zend_register_internal_class_ex(&ce, NULL);
1248#endif
1249
1250 return class_entry;
1251}
is_object(mixed $value)
zval * arg
Definition ffi.c:3975
#define NULL
Definition gdcache.h:45
zend_attribute_arg args[1]
uint32_t ce_flags
Definition zend.h:156
zend_string * doc_comment
Definition zend.h:224
HashTable function_table
Definition zend.h:163
zend_type types[1]
Definition zend_types.h:142
uint32_t num_types
Definition zend_types.h:141
zend_test_zend_call_stack_get()
zend_create_unterminated_string(string $str)
zend_string_or_stdclass($param)
zend_test_zend_call_stack_use_all()
zend_test_is_zend_ptr(int $addr)
zend_test_log_err_debug(string $str)
zend_test_crash(?string $message=null)
zend_iterable(iterable $arg1, ?iterable $arg2=null)
zend_get_map_ptr_last()
ZendTestUnitEnum
zend_test_is_pcre_bundled()
zend_string_or_object(object|string $param)
zend_test_deprecated(mixed $arg=null)
zend_test_parameter_with_attribute(#[ZendTestParameterAttribute("value1")] string $parameter)
zend_string_or_object_or_null(object|string|null $param)
zend_number_or_string(string|int|float $param)
zend_test_nullable_array_return()
zend_test_array_return()
zend_weakmap_remove(object $object)
zend_test_zend_ini_parse_uquantity(string $str)
zend_test_void_return()
zend_terminate_string(string &$str)
trait _ZendTestTrait
zend_leak_variable(mixed $variable)
testMethod()
zend_test_create_throwing_resource()
zend_test_fill_packed_array(array &$array)
zend_test_zend_ini_parse_quantity(string $str)
zend_test_zend_ini_str()
zend_get_current_func_name()
zend_get_unit_enum()
zend_test_override_libxml_global_state()
zend_string_or_stdclass_or_null($param)
get_open_basedir()
zend_weakmap_dump()
zend_test_compile_string(string $source_string, string $filename, int $position)
zend_object_init_with_constructor(string $class, mixed ... $args)
zend_test_set_fmode(bool $binary)
zend_weakmap_attach(object $object, mixed $value)
zend_test_cast_fread($stream)
zend_test_attribute_with_named_argument()
zend_number_or_string_or_null(string|int|float|null $param)
zend_test_is_string_marked_as_valid_utf8(string $string)
zend_leak_bytes(int $bytes=3)
zend_test_deprecated_attr()
#define arginfo_class_ZendTestChildClassWithMethodWithParameterAttribute_override
#define arginfo_ZendTestNS2_ZendSubNS_namespaced_aliased_func
#define arginfo_class__ZendTestMagicCallForward___call
#define arginfo_class_ZendAttributeTest_testMethod
#define arginfo_class_ZendTestNS2_ZendSubNS_Foo_method
#define arginfo_zend_test_zend_ini_str
#define arginfo_ZendTestNS2_namespaced_deprecated_func
#define arginfo_class__ZendTestClass___toString
#define arginfo_ZendTestNS2_namespaced_deprecated_aliased_func
#define arginfo_class__ZendTestClass_is_object
#define arginfo_class_ZendTestClassWithMethodWithParameterAttribute_no_override
#define arginfo_ZendTestNS2_namespaced_func
#define arginfo_class_ZendTestForbidDynamicCall_callStatic
#define arginfo_class_ZendTestForbidDynamicCall_call
#define arginfo_zend_test_deprecated_aliased
#define arginfo_class_ZendTestClassWithMethodWithParameterAttribute_override
#define arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_func
#define arginfo_zend_test_deprecated_attr
#define arginfo_zend_test_zend_ini_parse_uquantity
#define arginfo_zend_test_aliased
#define arginfo_class__ZendTestTrait_testMethod
#define arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_aliased_func
#define arginfo_ZendTestNS2_namespaced_aliased_func
#define arginfo_class_ZendTestNS2_Foo_method
#define arginfo_class_ZendTestPropertyAttribute___construct
#define arginfo_ZendTestNS2_ZendSubNS_namespaced_func
#define arginfo_zend_weakmap_dump
#define arginfo_zend_test_attribute_with_named_argument
ZEND_API zend_class_entry * zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce)
Definition zend_API.c:3506
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_constant * zend_declare_typed_class_constant(zend_class_entry *ce, zend_string *name, zval *value, int flags, zend_string *doc_comment, zend_type type)
Definition zend_API.c:4859
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
ZEND_API zend_class_constant * zend_declare_class_constant_ex(zend_class_entry *ce, zend_string *name, zval *value, int flags, zend_string *doc_comment)
Definition zend_API.c:4909
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(name, return_reference, required_num_args, class_name, type)
Definition zend_API.h:195
#define ZEND_ARG_VARIADIC_OBJ_TYPE_MASK(pass_by_ref, name, class_name, type_mask)
Definition zend_API.h:150
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:185
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_ARG_OBJ_TYPE_MASK(pass_by_ref, name, class_name, type_mask, default_value)
Definition zend_API.h:148
#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_ARG_INFO(pass_by_ref, name)
Definition zend_API.h:130
#define ZEND_ARG_TYPE_MASK(pass_by_ref, name, type_mask, default_value)
Definition zend_API.h:146
#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_VARIADIC_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:142
#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_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_BEGIN_ARG_INFO_EX(name, _unused, return_reference, required_num_args)
Definition zend_API.h:214
#define ZEND_NS_NAME(ns, name)
Definition zend_API.h:67
#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_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_ME(classname, name, arg_info, flags)
Definition zend_API.h:91
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define INIT_NS_CLASS_ENTRY(class_container, ns, class_name, functions)
Definition zend_API.h:325
#define ZEND_ATTRIBUTE_TARGET_PARAMETER
#define ZEND_ATTRIBUTE_IS_REPEATABLE
#define ZEND_ATTRIBUTE_TARGET_ALL
struct _zend_attribute zend_attribute
#define ZEND_ATTRIBUTE_TARGET_PROPERTY
struct _zval_struct zval
strlen(string $string)
zval * args
#define ZEND_ACC_FINAL
#define ZEND_ACC_NOT_SERIALIZABLE
#define ZEND_ACC_COMPILE_TIME_EVAL
#define ZEND_ACC_READONLY
struct _zend_class_constant zend_class_constant
struct _zend_property_info zend_property_info
#define ZEND_ACC_TRAIT
#define ZEND_ACC_STATIC
#define ZEND_ACC_PUBLIC
#define ZEND_ACC_DEPRECATED
#define REGISTER_STRING_CONSTANT(name, str, flags)
#define CONST_PERSISTENT
#define CONST_DEPRECATED
#define REGISTER_LONG_CONSTANT(name, lval, flags)
ZEND_API zend_class_entry * zend_register_internal_enum(const char *name, uint8_t type, const zend_function_entry *functions)
Definition zend_enum.c:503
ZEND_API void zend_enum_add_case_cstr(zend_class_entry *ce, const char *name, zval *value)
Definition zend_enum.c:606
#define CG(v)
#define ZVAL_EMPTY_ARRAY(z)
Definition zend_hash.h:87
ZEND_API zval * zend_call_method(zend_object *object, zend_class_entry *obj_ce, zend_function **fn_proxy, const char *function_name, size_t function_name_len, zval *retval_ptr, uint32_t param_count, zval *arg1, zval *arg2)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
ZEND_API zend_string_init_interned_func_t zend_string_init_interned
Definition zend_string.c:31
#define ZSTR_KNOWN(idx)
#define MAY_BE_STRING
#define MAY_BE_NULL
#define MAY_BE_DOUBLE
#define MAY_BE_LONG
#define MAY_BE_ANY
#define MAY_BE_OBJECT
#define MAY_BE_ARRAY
#define ZEND_TYPE_INIT_UNION(ptr, extra_flags)
Definition zend_types.h:297
#define ZVAL_STR(z, s)
#define ZVAL_UNDEF(z)
#define ZEND_TYPE_INIT_MASK(_type_mask)
Definition zend_types.h:283
#define IS_UNDEF
Definition zend_types.h:600
#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_LIST_SIZE(num_types)
Definition zend_types.h:207
#define ZEND_TYPE_INIT_NONE(extra_flags)
Definition zend_types.h:280
#define IS_OBJECT
Definition zend_types.h:608
#define IS_LONG
Definition zend_types.h:604
#define ZEND_TYPE_INIT_INTERSECTION(ptr, extra_flags)
Definition zend_types.h:300
#define IS_MIXED
Definition zend_types.h:619
#define _IS_BOOL
Definition zend_types.h:629
#define ZEND_TYPE_INIT_CLASS(class_name, allow_null, extra_flags)
Definition zend_types.h:303
#define IS_STATIC
Definition zend_types.h:618
#define ZVAL_COPY_VALUE(z, v)
zval * arg1
zval * arg2
zend_string * name
value
zend_execute_data * call