xref: /php-src/ext/spl/php_spl_arginfo.h (revision 10957e49)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 21ec2dcca99c85c90afcd319da76016a9f678dc2 */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_implements, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
5 	ZEND_ARG_INFO(0, object_or_class)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
7 ZEND_END_ARG_INFO()
8 
9 #define arginfo_class_parents arginfo_class_implements
10 
11 #define arginfo_class_uses arginfo_class_implements
12 
13 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload, 0, 1, IS_VOID, 0)
14 	ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
15 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, file_extensions, IS_STRING, 1, "null")
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_call, 0, 1, IS_VOID, 0)
19 	ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
20 ZEND_END_ARG_INFO()
21 
22 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_extensions, 0, 0, IS_STRING, 0)
23 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, file_extensions, IS_STRING, 1, "null")
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_functions, 0, 0, IS_ARRAY, 0)
27 ZEND_END_ARG_INFO()
28 
29 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_register, 0, 0, _IS_BOOL, 0)
30 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, callback, IS_CALLABLE, 1, "null")
31 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, throw, _IS_BOOL, 0, "true")
32 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prepend, _IS_BOOL, 0, "false")
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_unregister, 0, 1, _IS_BOOL, 0)
36 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
37 ZEND_END_ARG_INFO()
38 
39 #define arginfo_spl_classes arginfo_spl_autoload_functions
40 
41 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_object_hash, 0, 1, IS_STRING, 0)
42 	ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
43 ZEND_END_ARG_INFO()
44 
45 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_object_id, 0, 1, IS_LONG, 0)
46 	ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
47 ZEND_END_ARG_INFO()
48 
49 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iterator_apply, 0, 2, IS_LONG, 0)
50 	ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0)
51 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
52 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, args, IS_ARRAY, 1, "null")
53 ZEND_END_ARG_INFO()
54 
55 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iterator_count, 0, 1, IS_LONG, 0)
56 	ZEND_ARG_OBJ_TYPE_MASK(0, iterator, Traversable, MAY_BE_ARRAY, NULL)
57 ZEND_END_ARG_INFO()
58 
59 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iterator_to_array, 0, 1, IS_ARRAY, 0)
60 	ZEND_ARG_OBJ_TYPE_MASK(0, iterator, Traversable, MAY_BE_ARRAY, NULL)
61 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "true")
62 ZEND_END_ARG_INFO()
63 
64 ZEND_FUNCTION(class_implements);
65 ZEND_FUNCTION(class_parents);
66 ZEND_FUNCTION(class_uses);
67 ZEND_FUNCTION(spl_autoload);
68 ZEND_FUNCTION(spl_autoload_call);
69 ZEND_FUNCTION(spl_autoload_extensions);
70 ZEND_FUNCTION(spl_autoload_functions);
71 ZEND_FUNCTION(spl_autoload_register);
72 ZEND_FUNCTION(spl_autoload_unregister);
73 ZEND_FUNCTION(spl_classes);
74 ZEND_FUNCTION(spl_object_hash);
75 ZEND_FUNCTION(spl_object_id);
76 ZEND_FUNCTION(iterator_apply);
77 ZEND_FUNCTION(iterator_count);
78 ZEND_FUNCTION(iterator_to_array);
79 
80 static const zend_function_entry ext_functions[] = {
81 	ZEND_FE(class_implements, arginfo_class_implements)
82 	ZEND_FE(class_parents, arginfo_class_parents)
83 	ZEND_FE(class_uses, arginfo_class_uses)
84 	ZEND_FE(spl_autoload, arginfo_spl_autoload)
85 	ZEND_FE(spl_autoload_call, arginfo_spl_autoload_call)
86 	ZEND_FE(spl_autoload_extensions, arginfo_spl_autoload_extensions)
87 	ZEND_FE(spl_autoload_functions, arginfo_spl_autoload_functions)
88 	ZEND_FE(spl_autoload_register, arginfo_spl_autoload_register)
89 	ZEND_FE(spl_autoload_unregister, arginfo_spl_autoload_unregister)
90 	ZEND_FE(spl_classes, arginfo_spl_classes)
91 	ZEND_FE(spl_object_hash, arginfo_spl_object_hash)
92 	ZEND_FE(spl_object_id, arginfo_spl_object_id)
93 	ZEND_FE(iterator_apply, arginfo_iterator_apply)
94 	ZEND_FE(iterator_count, arginfo_iterator_count)
95 	ZEND_FE(iterator_to_array, arginfo_iterator_to_array)
96 	ZEND_FE_END
97 };
98