1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 12899073f3791c5da31aa555c0e612ee1faadf55 */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
5 ZEND_END_ARG_INFO()
6
7 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_func_num_args, 0, 0, IS_LONG, 0)
8 ZEND_END_ARG_INFO()
9
10 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_func_get_arg, 0, 1, IS_MIXED, 0)
11 ZEND_ARG_TYPE_INFO(0, position, IS_LONG, 0)
12 ZEND_END_ARG_INFO()
13
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_func_get_args, 0, 0, IS_ARRAY, 0)
15 ZEND_END_ARG_INFO()
16
17 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strlen, 0, 1, IS_LONG, 0)
18 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
19 ZEND_END_ARG_INFO()
20
21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strcmp, 0, 2, IS_LONG, 0)
22 ZEND_ARG_TYPE_INFO(0, string1, IS_STRING, 0)
23 ZEND_ARG_TYPE_INFO(0, string2, IS_STRING, 0)
24 ZEND_END_ARG_INFO()
25
26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strncmp, 0, 3, IS_LONG, 0)
27 ZEND_ARG_TYPE_INFO(0, string1, IS_STRING, 0)
28 ZEND_ARG_TYPE_INFO(0, string2, IS_STRING, 0)
29 ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
30 ZEND_END_ARG_INFO()
31
32 #define arginfo_strcasecmp arginfo_strcmp
33
34 #define arginfo_strncasecmp arginfo_strncmp
35
36 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_error_reporting, 0, 0, IS_LONG, 0)
37 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_level, IS_LONG, 1, "null")
38 ZEND_END_ARG_INFO()
39
40 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_define, 0, 2, _IS_BOOL, 0)
41 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
42 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
43 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, case_insensitive, _IS_BOOL, 0, "false")
44 ZEND_END_ARG_INFO()
45
46 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_defined, 0, 1, _IS_BOOL, 0)
47 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
48 ZEND_END_ARG_INFO()
49
50 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class, 0, 0, IS_STRING, 0)
51 ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
52 ZEND_END_ARG_INFO()
53
54 #define arginfo_get_called_class arginfo_zend_version
55
56 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_parent_class, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
57 ZEND_ARG_TYPE_MASK(0, object_or_class, MAY_BE_OBJECT|MAY_BE_STRING, NULL)
58 ZEND_END_ARG_INFO()
59
60 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_is_subclass_of, 0, 2, _IS_BOOL, 0)
61 ZEND_ARG_TYPE_INFO(0, object_or_class, IS_MIXED, 0)
62 ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
63 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, allow_string, _IS_BOOL, 0, "true")
64 ZEND_END_ARG_INFO()
65
66 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_is_a, 0, 2, _IS_BOOL, 0)
67 ZEND_ARG_TYPE_INFO(0, object_or_class, IS_MIXED, 0)
68 ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
69 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, allow_string, _IS_BOOL, 0, "false")
70 ZEND_END_ARG_INFO()
71
72 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class_vars, 0, 1, IS_ARRAY, 0)
73 ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
74 ZEND_END_ARG_INFO()
75
76 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_object_vars, 0, 1, IS_ARRAY, 0)
77 ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
78 ZEND_END_ARG_INFO()
79
80 #define arginfo_get_mangled_object_vars arginfo_get_object_vars
81
82 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class_methods, 0, 1, IS_ARRAY, 0)
83 ZEND_ARG_TYPE_MASK(0, object_or_class, MAY_BE_OBJECT|MAY_BE_STRING, NULL)
84 ZEND_END_ARG_INFO()
85
86 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_method_exists, 0, 2, _IS_BOOL, 0)
87 ZEND_ARG_INFO(0, object_or_class)
88 ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
89 ZEND_END_ARG_INFO()
90
91 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_property_exists, 0, 2, _IS_BOOL, 0)
92 ZEND_ARG_INFO(0, object_or_class)
93 ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0)
94 ZEND_END_ARG_INFO()
95
96 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_exists, 0, 1, _IS_BOOL, 0)
97 ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
98 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
99 ZEND_END_ARG_INFO()
100
101 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_interface_exists, 0, 1, _IS_BOOL, 0)
102 ZEND_ARG_TYPE_INFO(0, interface, IS_STRING, 0)
103 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
104 ZEND_END_ARG_INFO()
105
106 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trait_exists, 0, 1, _IS_BOOL, 0)
107 ZEND_ARG_TYPE_INFO(0, trait, IS_STRING, 0)
108 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
109 ZEND_END_ARG_INFO()
110
111 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enum_exists, 0, 1, _IS_BOOL, 0)
112 ZEND_ARG_TYPE_INFO(0, enum, IS_STRING, 0)
113 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
114 ZEND_END_ARG_INFO()
115
116 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_function_exists, 0, 1, _IS_BOOL, 0)
117 ZEND_ARG_TYPE_INFO(0, function, IS_STRING, 0)
118 ZEND_END_ARG_INFO()
119
120 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_alias, 0, 2, _IS_BOOL, 0)
121 ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
122 ZEND_ARG_TYPE_INFO(0, alias, IS_STRING, 0)
123 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
124 ZEND_END_ARG_INFO()
125
126 #define arginfo_get_included_files arginfo_func_get_args
127
128 #define arginfo_get_required_files arginfo_func_get_args
129
130 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trigger_error, 0, 1, _IS_BOOL, 0)
131 ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
132 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_level, IS_LONG, 0, "E_USER_NOTICE")
133 ZEND_END_ARG_INFO()
134
135 #define arginfo_user_error arginfo_trigger_error
136
137 ZEND_BEGIN_ARG_INFO_EX(arginfo_set_error_handler, 0, 0, 1)
138 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
139 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_levels, IS_LONG, 0, "E_ALL")
140 ZEND_END_ARG_INFO()
141
142 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_restore_error_handler, 0, 0, IS_TRUE, 0)
143 ZEND_END_ARG_INFO()
144
145 ZEND_BEGIN_ARG_INFO_EX(arginfo_set_exception_handler, 0, 0, 1)
146 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
147 ZEND_END_ARG_INFO()
148
149 #define arginfo_restore_exception_handler arginfo_restore_error_handler
150
151 #define arginfo_get_declared_classes arginfo_func_get_args
152
153 #define arginfo_get_declared_traits arginfo_func_get_args
154
155 #define arginfo_get_declared_interfaces arginfo_func_get_args
156
157 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_defined_functions, 0, 0, IS_ARRAY, 0)
158 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, exclude_disabled, _IS_BOOL, 0, "true")
159 ZEND_END_ARG_INFO()
160
161 #define arginfo_get_defined_vars arginfo_func_get_args
162
163 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_resource_type, 0, 1, IS_STRING, 0)
164 ZEND_ARG_INFO(0, resource)
165 ZEND_END_ARG_INFO()
166
167 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_resource_id, 0, 1, IS_LONG, 0)
168 ZEND_ARG_INFO(0, resource)
169 ZEND_END_ARG_INFO()
170
171 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_resources, 0, 0, IS_ARRAY, 0)
172 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 1, "null")
173 ZEND_END_ARG_INFO()
174
175 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_loaded_extensions, 0, 0, IS_ARRAY, 0)
176 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, zend_extensions, _IS_BOOL, 0, "false")
177 ZEND_END_ARG_INFO()
178
179 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_defined_constants, 0, 0, IS_ARRAY, 0)
180 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, categorize, _IS_BOOL, 0, "false")
181 ZEND_END_ARG_INFO()
182
183 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_debug_backtrace, 0, 0, IS_ARRAY, 0)
184 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "DEBUG_BACKTRACE_PROVIDE_OBJECT")
185 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "0")
186 ZEND_END_ARG_INFO()
187
188 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_debug_print_backtrace, 0, 0, IS_VOID, 0)
189 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
190 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "0")
191 ZEND_END_ARG_INFO()
192
193 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_extension_loaded, 0, 1, _IS_BOOL, 0)
194 ZEND_ARG_TYPE_INFO(0, extension, IS_STRING, 0)
195 ZEND_END_ARG_INFO()
196
197 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_extension_funcs, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
198 ZEND_ARG_TYPE_INFO(0, extension, IS_STRING, 0)
199 ZEND_END_ARG_INFO()
200
201 #if ZEND_DEBUG && defined(ZTS)
202 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_thread_id, 0, 0, IS_LONG, 0)
203 ZEND_END_ARG_INFO()
204 #endif
205
206 #define arginfo_gc_mem_caches arginfo_func_num_args
207
208 #define arginfo_gc_collect_cycles arginfo_func_num_args
209
210 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gc_enabled, 0, 0, _IS_BOOL, 0)
211 ZEND_END_ARG_INFO()
212
213 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gc_enable, 0, 0, IS_VOID, 0)
214 ZEND_END_ARG_INFO()
215
216 #define arginfo_gc_disable arginfo_gc_enable
217
218 #define arginfo_gc_status arginfo_func_get_args
219
220
221 ZEND_FUNCTION(zend_version);
222 ZEND_FUNCTION(func_num_args);
223 ZEND_FUNCTION(func_get_arg);
224 ZEND_FUNCTION(func_get_args);
225 ZEND_FUNCTION(strlen);
226 ZEND_FUNCTION(strcmp);
227 ZEND_FUNCTION(strncmp);
228 ZEND_FUNCTION(strcasecmp);
229 ZEND_FUNCTION(strncasecmp);
230 ZEND_FUNCTION(error_reporting);
231 ZEND_FUNCTION(define);
232 ZEND_FUNCTION(defined);
233 ZEND_FUNCTION(get_class);
234 ZEND_FUNCTION(get_called_class);
235 ZEND_FUNCTION(get_parent_class);
236 ZEND_FUNCTION(is_subclass_of);
237 ZEND_FUNCTION(is_a);
238 ZEND_FUNCTION(get_class_vars);
239 ZEND_FUNCTION(get_object_vars);
240 ZEND_FUNCTION(get_mangled_object_vars);
241 ZEND_FUNCTION(get_class_methods);
242 ZEND_FUNCTION(method_exists);
243 ZEND_FUNCTION(property_exists);
244 ZEND_FUNCTION(class_exists);
245 ZEND_FUNCTION(interface_exists);
246 ZEND_FUNCTION(trait_exists);
247 ZEND_FUNCTION(enum_exists);
248 ZEND_FUNCTION(function_exists);
249 ZEND_FUNCTION(class_alias);
250 ZEND_FUNCTION(get_included_files);
251 ZEND_FUNCTION(trigger_error);
252 ZEND_FUNCTION(set_error_handler);
253 ZEND_FUNCTION(restore_error_handler);
254 ZEND_FUNCTION(set_exception_handler);
255 ZEND_FUNCTION(restore_exception_handler);
256 ZEND_FUNCTION(get_declared_classes);
257 ZEND_FUNCTION(get_declared_traits);
258 ZEND_FUNCTION(get_declared_interfaces);
259 ZEND_FUNCTION(get_defined_functions);
260 ZEND_FUNCTION(get_defined_vars);
261 ZEND_FUNCTION(get_resource_type);
262 ZEND_FUNCTION(get_resource_id);
263 ZEND_FUNCTION(get_resources);
264 ZEND_FUNCTION(get_loaded_extensions);
265 ZEND_FUNCTION(get_defined_constants);
266 ZEND_FUNCTION(debug_backtrace);
267 ZEND_FUNCTION(debug_print_backtrace);
268 ZEND_FUNCTION(extension_loaded);
269 ZEND_FUNCTION(get_extension_funcs);
270 #if ZEND_DEBUG && defined(ZTS)
271 ZEND_FUNCTION(zend_thread_id);
272 #endif
273 ZEND_FUNCTION(gc_mem_caches);
274 ZEND_FUNCTION(gc_collect_cycles);
275 ZEND_FUNCTION(gc_enabled);
276 ZEND_FUNCTION(gc_enable);
277 ZEND_FUNCTION(gc_disable);
278 ZEND_FUNCTION(gc_status);
279
280
281 static const zend_function_entry ext_functions[] = {
282 ZEND_FE(zend_version, arginfo_zend_version)
283 ZEND_FE(func_num_args, arginfo_func_num_args)
284 ZEND_FE(func_get_arg, arginfo_func_get_arg)
285 ZEND_FE(func_get_args, arginfo_func_get_args)
286 ZEND_FE(strlen, arginfo_strlen)
287 ZEND_SUPPORTS_COMPILE_TIME_EVAL_FE(strcmp, arginfo_strcmp)
288 ZEND_SUPPORTS_COMPILE_TIME_EVAL_FE(strncmp, arginfo_strncmp)
289 ZEND_SUPPORTS_COMPILE_TIME_EVAL_FE(strcasecmp, arginfo_strcasecmp)
290 ZEND_SUPPORTS_COMPILE_TIME_EVAL_FE(strncasecmp, arginfo_strncasecmp)
291 ZEND_FE(error_reporting, arginfo_error_reporting)
292 ZEND_FE(define, arginfo_define)
293 ZEND_FE(defined, arginfo_defined)
294 ZEND_FE(get_class, arginfo_get_class)
295 ZEND_FE(get_called_class, arginfo_get_called_class)
296 ZEND_FE(get_parent_class, arginfo_get_parent_class)
297 ZEND_FE(is_subclass_of, arginfo_is_subclass_of)
298 ZEND_FE(is_a, arginfo_is_a)
299 ZEND_FE(get_class_vars, arginfo_get_class_vars)
300 ZEND_FE(get_object_vars, arginfo_get_object_vars)
301 ZEND_FE(get_mangled_object_vars, arginfo_get_mangled_object_vars)
302 ZEND_FE(get_class_methods, arginfo_get_class_methods)
303 ZEND_FE(method_exists, arginfo_method_exists)
304 ZEND_FE(property_exists, arginfo_property_exists)
305 ZEND_FE(class_exists, arginfo_class_exists)
306 ZEND_FE(interface_exists, arginfo_interface_exists)
307 ZEND_FE(trait_exists, arginfo_trait_exists)
308 ZEND_FE(enum_exists, arginfo_enum_exists)
309 ZEND_FE(function_exists, arginfo_function_exists)
310 ZEND_FE(class_alias, arginfo_class_alias)
311 ZEND_FE(get_included_files, arginfo_get_included_files)
312 ZEND_FALIAS(get_required_files, get_included_files, arginfo_get_required_files)
313 ZEND_FE(trigger_error, arginfo_trigger_error)
314 ZEND_FALIAS(user_error, trigger_error, arginfo_user_error)
315 ZEND_FE(set_error_handler, arginfo_set_error_handler)
316 ZEND_FE(restore_error_handler, arginfo_restore_error_handler)
317 ZEND_FE(set_exception_handler, arginfo_set_exception_handler)
318 ZEND_FE(restore_exception_handler, arginfo_restore_exception_handler)
319 ZEND_FE(get_declared_classes, arginfo_get_declared_classes)
320 ZEND_FE(get_declared_traits, arginfo_get_declared_traits)
321 ZEND_FE(get_declared_interfaces, arginfo_get_declared_interfaces)
322 ZEND_FE(get_defined_functions, arginfo_get_defined_functions)
323 ZEND_FE(get_defined_vars, arginfo_get_defined_vars)
324 ZEND_FE(get_resource_type, arginfo_get_resource_type)
325 ZEND_FE(get_resource_id, arginfo_get_resource_id)
326 ZEND_FE(get_resources, arginfo_get_resources)
327 ZEND_FE(get_loaded_extensions, arginfo_get_loaded_extensions)
328 ZEND_FE(get_defined_constants, arginfo_get_defined_constants)
329 ZEND_FE(debug_backtrace, arginfo_debug_backtrace)
330 ZEND_FE(debug_print_backtrace, arginfo_debug_print_backtrace)
331 ZEND_FE(extension_loaded, arginfo_extension_loaded)
332 ZEND_FE(get_extension_funcs, arginfo_get_extension_funcs)
333 #if ZEND_DEBUG && defined(ZTS)
334 ZEND_FE(zend_thread_id, arginfo_zend_thread_id)
335 #endif
336 ZEND_FE(gc_mem_caches, arginfo_gc_mem_caches)
337 ZEND_FE(gc_collect_cycles, arginfo_gc_collect_cycles)
338 ZEND_FE(gc_enabled, arginfo_gc_enabled)
339 ZEND_FE(gc_enable, arginfo_gc_enable)
340 ZEND_FE(gc_disable, arginfo_gc_disable)
341 ZEND_FE(gc_status, arginfo_gc_status)
342 ZEND_FE_END
343 };
344
345
346 static const zend_function_entry class_stdClass_methods[] = {
347 ZEND_FE_END
348 };
349
register_class_stdClass(void)350 static zend_class_entry *register_class_stdClass(void)
351 {
352 zend_class_entry ce, *class_entry;
353
354 INIT_CLASS_ENTRY(ce, "stdClass", class_stdClass_methods);
355 class_entry = zend_register_internal_class_ex(&ce, NULL);
356 class_entry->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES;
357
358 zend_string *attribute_name_AllowDynamicProperties_class_stdClass_0 = zend_string_init_interned("AllowDynamicProperties", sizeof("AllowDynamicProperties") - 1, 1);
359 zend_add_class_attribute(class_entry, attribute_name_AllowDynamicProperties_class_stdClass_0, 0);
360 zend_string_release(attribute_name_AllowDynamicProperties_class_stdClass_0);
361
362 return class_entry;
363 }
364