/src/php-src/ext/spl/php_spl_arginfo.h
Line | Count | Source |
1 | | /* This is a generated file, edit php_spl.stub.php instead. |
2 | | * Stub hash: 5f9f72a101d08dc67472461115b90534d4805ddc */ |
3 | | |
4 | | #include "zend_attributes.h" |
5 | | |
6 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_implements, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE) |
7 | | ZEND_ARG_INFO(0, object_or_class) |
8 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true") |
9 | | ZEND_END_ARG_INFO() |
10 | | |
11 | | #define arginfo_class_parents arginfo_class_implements |
12 | | |
13 | | #define arginfo_class_uses arginfo_class_implements |
14 | | |
15 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload, 0, 1, IS_VOID, 0) |
16 | | ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0) |
17 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, file_extensions, IS_STRING, 1, "null") |
18 | | ZEND_END_ARG_INFO() |
19 | | |
20 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_call, 0, 1, IS_VOID, 0) |
21 | | ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0) |
22 | | ZEND_END_ARG_INFO() |
23 | | |
24 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_extensions, 0, 0, IS_STRING, 0) |
25 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, file_extensions, IS_STRING, 1, "null") |
26 | | ZEND_END_ARG_INFO() |
27 | | |
28 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_functions, 0, 0, IS_ARRAY, 0) |
29 | | ZEND_END_ARG_INFO() |
30 | | |
31 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_register, 0, 0, _IS_BOOL, 0) |
32 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, callback, IS_CALLABLE, 1, "null") |
33 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, throw, _IS_BOOL, 0, "true") |
34 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prepend, _IS_BOOL, 0, "false") |
35 | | ZEND_END_ARG_INFO() |
36 | | |
37 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_unregister, 0, 1, _IS_BOOL, 0) |
38 | | ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) |
39 | | ZEND_END_ARG_INFO() |
40 | | |
41 | | #define arginfo_spl_classes arginfo_spl_autoload_functions |
42 | | |
43 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_object_hash, 0, 1, IS_STRING, 0) |
44 | | ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0) |
45 | | ZEND_END_ARG_INFO() |
46 | | |
47 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_object_id, 0, 1, IS_LONG, 0) |
48 | | ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0) |
49 | | ZEND_END_ARG_INFO() |
50 | | |
51 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iterator_apply, 0, 2, IS_LONG, 0) |
52 | | ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0) |
53 | | ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) |
54 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, args, IS_ARRAY, 1, "null") |
55 | | ZEND_END_ARG_INFO() |
56 | | |
57 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iterator_count, 0, 1, IS_LONG, 0) |
58 | | ZEND_ARG_OBJ_TYPE_MASK(0, iterator, Traversable, MAY_BE_ARRAY, NULL) |
59 | | ZEND_END_ARG_INFO() |
60 | | |
61 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iterator_to_array, 0, 1, IS_ARRAY, 0) |
62 | | ZEND_ARG_OBJ_TYPE_MASK(0, iterator, Traversable, MAY_BE_ARRAY, NULL) |
63 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "true") |
64 | | ZEND_END_ARG_INFO() |
65 | | |
66 | | ZEND_FUNCTION(class_implements); |
67 | | ZEND_FUNCTION(class_parents); |
68 | | ZEND_FUNCTION(class_uses); |
69 | | ZEND_FUNCTION(spl_autoload); |
70 | | ZEND_FUNCTION(spl_autoload_call); |
71 | | ZEND_FUNCTION(spl_autoload_extensions); |
72 | | ZEND_FUNCTION(spl_autoload_functions); |
73 | | ZEND_FUNCTION(spl_autoload_register); |
74 | | ZEND_FUNCTION(spl_autoload_unregister); |
75 | | ZEND_FUNCTION(spl_classes); |
76 | | ZEND_FUNCTION(spl_object_hash); |
77 | | ZEND_FUNCTION(spl_object_id); |
78 | | ZEND_FUNCTION(iterator_apply); |
79 | | ZEND_FUNCTION(iterator_count); |
80 | | ZEND_FUNCTION(iterator_to_array); |
81 | | |
82 | | static const zend_function_entry ext_functions[] = { |
83 | | ZEND_FE(class_implements, arginfo_class_implements) |
84 | | ZEND_FE(class_parents, arginfo_class_parents) |
85 | | ZEND_FE(class_uses, arginfo_class_uses) |
86 | | ZEND_FE(spl_autoload, arginfo_spl_autoload) |
87 | | ZEND_FE(spl_autoload_call, arginfo_spl_autoload_call) |
88 | | ZEND_FE(spl_autoload_extensions, arginfo_spl_autoload_extensions) |
89 | | ZEND_FE(spl_autoload_functions, arginfo_spl_autoload_functions) |
90 | | ZEND_FE(spl_autoload_register, arginfo_spl_autoload_register) |
91 | | ZEND_FE(spl_autoload_unregister, arginfo_spl_autoload_unregister) |
92 | | ZEND_RAW_FENTRY("spl_classes", zif_spl_classes, arginfo_spl_classes, ZEND_ACC_DEPRECATED, NULL, NULL) |
93 | | ZEND_RAW_FENTRY("spl_object_hash", zif_spl_object_hash, arginfo_spl_object_hash, ZEND_ACC_DEPRECATED, NULL, NULL) |
94 | | ZEND_FE(spl_object_id, arginfo_spl_object_id) |
95 | | ZEND_FE(iterator_apply, arginfo_iterator_apply) |
96 | | ZEND_FE(iterator_count, arginfo_iterator_count) |
97 | | ZEND_FE(iterator_to_array, arginfo_iterator_to_array) |
98 | | ZEND_FE_END |
99 | | }; |
100 | | |
101 | | static void register_php_spl_symbols(int module_number) |
102 | 16 | { |
103 | | |
104 | 16 | zend_attribute *attribute_Deprecated_func_spl_classes_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "spl_classes", sizeof("spl_classes") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2); |
105 | 16 | zend_string *attribute_Deprecated_func_spl_classes_0_arg0_str = zend_string_init("use ReflectionExtension::getClassNames() instead", strlen("use ReflectionExtension::getClassNames() instead"), 1); |
106 | 16 | ZVAL_STR(&attribute_Deprecated_func_spl_classes_0->args[0].value, attribute_Deprecated_func_spl_classes_0_arg0_str); |
107 | 16 | attribute_Deprecated_func_spl_classes_0->args[0].name = ZSTR_KNOWN(ZEND_STR_MESSAGE); |
108 | 16 | ZVAL_STR(&attribute_Deprecated_func_spl_classes_0->args[1].value, ZSTR_KNOWN(ZEND_STR_8_DOT_6)); |
109 | 16 | attribute_Deprecated_func_spl_classes_0->args[1].name = ZSTR_KNOWN(ZEND_STR_SINCE); |
110 | | |
111 | 16 | zend_attribute *attribute_Deprecated_func_spl_object_hash_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "spl_object_hash", sizeof("spl_object_hash") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2); |
112 | 16 | zend_string *attribute_Deprecated_func_spl_object_hash_0_arg0_str = zend_string_init("consider using spl_object_id() instead", strlen("consider using spl_object_id() instead"), 1); |
113 | 16 | ZVAL_STR(&attribute_Deprecated_func_spl_object_hash_0->args[0].value, attribute_Deprecated_func_spl_object_hash_0_arg0_str); |
114 | 16 | attribute_Deprecated_func_spl_object_hash_0->args[0].name = ZSTR_KNOWN(ZEND_STR_MESSAGE); |
115 | 16 | ZVAL_STR(&attribute_Deprecated_func_spl_object_hash_0->args[1].value, ZSTR_KNOWN(ZEND_STR_8_DOT_6)); |
116 | 16 | attribute_Deprecated_func_spl_object_hash_0->args[1].name = ZSTR_KNOWN(ZEND_STR_SINCE); |
117 | 16 | } |