1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: c333499e3ea100d976f0fa8bb8800ed21b04f1c6 */
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_INFO(0, value)
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_BOOL, 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 #define arginfo_gc_enabled arginfo_restore_error_handler
211 
212 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gc_enable, 0, 0, IS_VOID, 0)
213 ZEND_END_ARG_INFO()
214 
215 #define arginfo_gc_disable arginfo_gc_enable
216 
217 #define arginfo_gc_status arginfo_func_get_args
218 
219 
220 ZEND_FUNCTION(zend_version);
221 ZEND_FUNCTION(func_num_args);
222 ZEND_FUNCTION(func_get_arg);
223 ZEND_FUNCTION(func_get_args);
224 ZEND_FUNCTION(strlen);
225 ZEND_FUNCTION(strcmp);
226 ZEND_FUNCTION(strncmp);
227 ZEND_FUNCTION(strcasecmp);
228 ZEND_FUNCTION(strncasecmp);
229 ZEND_FUNCTION(error_reporting);
230 ZEND_FUNCTION(define);
231 ZEND_FUNCTION(defined);
232 ZEND_FUNCTION(get_class);
233 ZEND_FUNCTION(get_called_class);
234 ZEND_FUNCTION(get_parent_class);
235 ZEND_FUNCTION(is_subclass_of);
236 ZEND_FUNCTION(is_a);
237 ZEND_FUNCTION(get_class_vars);
238 ZEND_FUNCTION(get_object_vars);
239 ZEND_FUNCTION(get_mangled_object_vars);
240 ZEND_FUNCTION(get_class_methods);
241 ZEND_FUNCTION(method_exists);
242 ZEND_FUNCTION(property_exists);
243 ZEND_FUNCTION(class_exists);
244 ZEND_FUNCTION(interface_exists);
245 ZEND_FUNCTION(trait_exists);
246 ZEND_FUNCTION(enum_exists);
247 ZEND_FUNCTION(function_exists);
248 ZEND_FUNCTION(class_alias);
249 ZEND_FUNCTION(get_included_files);
250 ZEND_FUNCTION(trigger_error);
251 ZEND_FUNCTION(set_error_handler);
252 ZEND_FUNCTION(restore_error_handler);
253 ZEND_FUNCTION(set_exception_handler);
254 ZEND_FUNCTION(restore_exception_handler);
255 ZEND_FUNCTION(get_declared_classes);
256 ZEND_FUNCTION(get_declared_traits);
257 ZEND_FUNCTION(get_declared_interfaces);
258 ZEND_FUNCTION(get_defined_functions);
259 ZEND_FUNCTION(get_defined_vars);
260 ZEND_FUNCTION(get_resource_type);
261 ZEND_FUNCTION(get_resource_id);
262 ZEND_FUNCTION(get_resources);
263 ZEND_FUNCTION(get_loaded_extensions);
264 ZEND_FUNCTION(get_defined_constants);
265 ZEND_FUNCTION(debug_backtrace);
266 ZEND_FUNCTION(debug_print_backtrace);
267 ZEND_FUNCTION(extension_loaded);
268 ZEND_FUNCTION(get_extension_funcs);
269 #if ZEND_DEBUG && defined(ZTS)
270 ZEND_FUNCTION(zend_thread_id);
271 #endif
272 ZEND_FUNCTION(gc_mem_caches);
273 ZEND_FUNCTION(gc_collect_cycles);
274 ZEND_FUNCTION(gc_enabled);
275 ZEND_FUNCTION(gc_enable);
276 ZEND_FUNCTION(gc_disable);
277 ZEND_FUNCTION(gc_status);
278 
279 
280 static const zend_function_entry ext_functions[] = {
281 	ZEND_FE(zend_version, arginfo_zend_version)
282 	ZEND_FE(func_num_args, arginfo_func_num_args)
283 	ZEND_FE(func_get_arg, arginfo_func_get_arg)
284 	ZEND_FE(func_get_args, arginfo_func_get_args)
285 	ZEND_FE(strlen, arginfo_strlen)
286 	ZEND_FE(strcmp, arginfo_strcmp)
287 	ZEND_FE(strncmp, arginfo_strncmp)
288 	ZEND_FE(strcasecmp, arginfo_strcasecmp)
289 	ZEND_FE(strncasecmp, arginfo_strncasecmp)
290 	ZEND_FE(error_reporting, arginfo_error_reporting)
291 	ZEND_FE(define, arginfo_define)
292 	ZEND_FE(defined, arginfo_defined)
293 	ZEND_FE(get_class, arginfo_get_class)
294 	ZEND_FE(get_called_class, arginfo_get_called_class)
295 	ZEND_FE(get_parent_class, arginfo_get_parent_class)
296 	ZEND_FE(is_subclass_of, arginfo_is_subclass_of)
297 	ZEND_FE(is_a, arginfo_is_a)
298 	ZEND_FE(get_class_vars, arginfo_get_class_vars)
299 	ZEND_FE(get_object_vars, arginfo_get_object_vars)
300 	ZEND_FE(get_mangled_object_vars, arginfo_get_mangled_object_vars)
301 	ZEND_FE(get_class_methods, arginfo_get_class_methods)
302 	ZEND_FE(method_exists, arginfo_method_exists)
303 	ZEND_FE(property_exists, arginfo_property_exists)
304 	ZEND_FE(class_exists, arginfo_class_exists)
305 	ZEND_FE(interface_exists, arginfo_interface_exists)
306 	ZEND_FE(trait_exists, arginfo_trait_exists)
307 	ZEND_FE(enum_exists, arginfo_enum_exists)
308 	ZEND_FE(function_exists, arginfo_function_exists)
309 	ZEND_FE(class_alias, arginfo_class_alias)
310 	ZEND_FE(get_included_files, arginfo_get_included_files)
311 	ZEND_FALIAS(get_required_files, get_included_files, arginfo_get_required_files)
312 	ZEND_FE(trigger_error, arginfo_trigger_error)
313 	ZEND_FALIAS(user_error, trigger_error, arginfo_user_error)
314 	ZEND_FE(set_error_handler, arginfo_set_error_handler)
315 	ZEND_FE(restore_error_handler, arginfo_restore_error_handler)
316 	ZEND_FE(set_exception_handler, arginfo_set_exception_handler)
317 	ZEND_FE(restore_exception_handler, arginfo_restore_exception_handler)
318 	ZEND_FE(get_declared_classes, arginfo_get_declared_classes)
319 	ZEND_FE(get_declared_traits, arginfo_get_declared_traits)
320 	ZEND_FE(get_declared_interfaces, arginfo_get_declared_interfaces)
321 	ZEND_FE(get_defined_functions, arginfo_get_defined_functions)
322 	ZEND_FE(get_defined_vars, arginfo_get_defined_vars)
323 	ZEND_FE(get_resource_type, arginfo_get_resource_type)
324 	ZEND_FE(get_resource_id, arginfo_get_resource_id)
325 	ZEND_FE(get_resources, arginfo_get_resources)
326 	ZEND_FE(get_loaded_extensions, arginfo_get_loaded_extensions)
327 	ZEND_FE(get_defined_constants, arginfo_get_defined_constants)
328 	ZEND_FE(debug_backtrace, arginfo_debug_backtrace)
329 	ZEND_FE(debug_print_backtrace, arginfo_debug_print_backtrace)
330 	ZEND_FE(extension_loaded, arginfo_extension_loaded)
331 	ZEND_FE(get_extension_funcs, arginfo_get_extension_funcs)
332 #if ZEND_DEBUG && defined(ZTS)
333 	ZEND_FE(zend_thread_id, arginfo_zend_thread_id)
334 #endif
335 	ZEND_FE(gc_mem_caches, arginfo_gc_mem_caches)
336 	ZEND_FE(gc_collect_cycles, arginfo_gc_collect_cycles)
337 	ZEND_FE(gc_enabled, arginfo_gc_enabled)
338 	ZEND_FE(gc_enable, arginfo_gc_enable)
339 	ZEND_FE(gc_disable, arginfo_gc_disable)
340 	ZEND_FE(gc_status, arginfo_gc_status)
341 	ZEND_FE_END
342 };
343 
344 
345 static const zend_function_entry class_stdClass_methods[] = {
346 	ZEND_FE_END
347 };
348 
register_class_stdClass(void)349 static zend_class_entry *register_class_stdClass(void)
350 {
351 	zend_class_entry ce, *class_entry;
352 
353 	INIT_CLASS_ENTRY(ce, "stdClass", class_stdClass_methods);
354 	class_entry = zend_register_internal_class_ex(&ce, NULL);
355 
356 	return class_entry;
357 }
358