1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 45e42d3a0589031651daee5653900d5a4fb61c3d */
3
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_add, 0, 2, IS_VOID, 0)
5 ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
6 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
7 ZEND_END_ARG_INFO()
8
9 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_pop, 0, 0, IS_MIXED, 0)
10 ZEND_END_ARG_INFO()
11
12 #define arginfo_class_SplDoublyLinkedList_shift arginfo_class_SplDoublyLinkedList_pop
13
14 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_push, 0, 1, IS_VOID, 0)
15 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
16 ZEND_END_ARG_INFO()
17
18 #define arginfo_class_SplDoublyLinkedList_unshift arginfo_class_SplDoublyLinkedList_push
19
20 #define arginfo_class_SplDoublyLinkedList_top arginfo_class_SplDoublyLinkedList_pop
21
22 #define arginfo_class_SplDoublyLinkedList_bottom arginfo_class_SplDoublyLinkedList_pop
23
24 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList___debugInfo, 0, 0, IS_ARRAY, 0)
25 ZEND_END_ARG_INFO()
26
27 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_count, 0, 0, IS_LONG, 0)
28 ZEND_END_ARG_INFO()
29
30 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_isEmpty, 0, 0, _IS_BOOL, 0)
31 ZEND_END_ARG_INFO()
32
33 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_setIteratorMode, 0, 1, IS_LONG, 0)
34 ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
35 ZEND_END_ARG_INFO()
36
37 #define arginfo_class_SplDoublyLinkedList_getIteratorMode arginfo_class_SplDoublyLinkedList_count
38
39 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetExists, 0, 1, _IS_BOOL, 0)
40 ZEND_ARG_INFO(0, index)
41 ZEND_END_ARG_INFO()
42
43 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetGet, 0, 1, IS_MIXED, 0)
44 ZEND_ARG_INFO(0, index)
45 ZEND_END_ARG_INFO()
46
47 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetSet, 0, 2, IS_VOID, 0)
48 ZEND_ARG_INFO(0, index)
49 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
50 ZEND_END_ARG_INFO()
51
52 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetUnset, 0, 1, IS_VOID, 0)
53 ZEND_ARG_INFO(0, index)
54 ZEND_END_ARG_INFO()
55
56 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_rewind, 0, 0, IS_VOID, 0)
57 ZEND_END_ARG_INFO()
58
59 #define arginfo_class_SplDoublyLinkedList_current arginfo_class_SplDoublyLinkedList_pop
60
61 #define arginfo_class_SplDoublyLinkedList_key arginfo_class_SplDoublyLinkedList_count
62
63 #define arginfo_class_SplDoublyLinkedList_prev arginfo_class_SplDoublyLinkedList_rewind
64
65 #define arginfo_class_SplDoublyLinkedList_next arginfo_class_SplDoublyLinkedList_rewind
66
67 #define arginfo_class_SplDoublyLinkedList_valid arginfo_class_SplDoublyLinkedList_isEmpty
68
69 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_unserialize, 0, 1, IS_VOID, 0)
70 ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
71 ZEND_END_ARG_INFO()
72
73 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_serialize, 0, 0, IS_STRING, 0)
74 ZEND_END_ARG_INFO()
75
76 #define arginfo_class_SplDoublyLinkedList___serialize arginfo_class_SplDoublyLinkedList___debugInfo
77
78 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList___unserialize, 0, 1, IS_VOID, 0)
79 ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0)
80 ZEND_END_ARG_INFO()
81
82 #define arginfo_class_SplQueue_enqueue arginfo_class_SplDoublyLinkedList_push
83
84 #define arginfo_class_SplQueue_dequeue arginfo_class_SplDoublyLinkedList_pop
85
86 ZEND_METHOD(SplDoublyLinkedList, add);
87 ZEND_METHOD(SplDoublyLinkedList, pop);
88 ZEND_METHOD(SplDoublyLinkedList, shift);
89 ZEND_METHOD(SplDoublyLinkedList, push);
90 ZEND_METHOD(SplDoublyLinkedList, unshift);
91 ZEND_METHOD(SplDoublyLinkedList, top);
92 ZEND_METHOD(SplDoublyLinkedList, bottom);
93 ZEND_METHOD(SplDoublyLinkedList, __debugInfo);
94 ZEND_METHOD(SplDoublyLinkedList, count);
95 ZEND_METHOD(SplDoublyLinkedList, isEmpty);
96 ZEND_METHOD(SplDoublyLinkedList, setIteratorMode);
97 ZEND_METHOD(SplDoublyLinkedList, getIteratorMode);
98 ZEND_METHOD(SplDoublyLinkedList, offsetExists);
99 ZEND_METHOD(SplDoublyLinkedList, offsetGet);
100 ZEND_METHOD(SplDoublyLinkedList, offsetSet);
101 ZEND_METHOD(SplDoublyLinkedList, offsetUnset);
102 ZEND_METHOD(SplDoublyLinkedList, rewind);
103 ZEND_METHOD(SplDoublyLinkedList, current);
104 ZEND_METHOD(SplDoublyLinkedList, key);
105 ZEND_METHOD(SplDoublyLinkedList, prev);
106 ZEND_METHOD(SplDoublyLinkedList, next);
107 ZEND_METHOD(SplDoublyLinkedList, valid);
108 ZEND_METHOD(SplDoublyLinkedList, unserialize);
109 ZEND_METHOD(SplDoublyLinkedList, serialize);
110 ZEND_METHOD(SplDoublyLinkedList, __serialize);
111 ZEND_METHOD(SplDoublyLinkedList, __unserialize);
112
113 static const zend_function_entry class_SplDoublyLinkedList_methods[] = {
114 ZEND_ME(SplDoublyLinkedList, add, arginfo_class_SplDoublyLinkedList_add, ZEND_ACC_PUBLIC)
115 ZEND_ME(SplDoublyLinkedList, pop, arginfo_class_SplDoublyLinkedList_pop, ZEND_ACC_PUBLIC)
116 ZEND_ME(SplDoublyLinkedList, shift, arginfo_class_SplDoublyLinkedList_shift, ZEND_ACC_PUBLIC)
117 ZEND_ME(SplDoublyLinkedList, push, arginfo_class_SplDoublyLinkedList_push, ZEND_ACC_PUBLIC)
118 ZEND_ME(SplDoublyLinkedList, unshift, arginfo_class_SplDoublyLinkedList_unshift, ZEND_ACC_PUBLIC)
119 ZEND_ME(SplDoublyLinkedList, top, arginfo_class_SplDoublyLinkedList_top, ZEND_ACC_PUBLIC)
120 ZEND_ME(SplDoublyLinkedList, bottom, arginfo_class_SplDoublyLinkedList_bottom, ZEND_ACC_PUBLIC)
121 ZEND_ME(SplDoublyLinkedList, __debugInfo, arginfo_class_SplDoublyLinkedList___debugInfo, ZEND_ACC_PUBLIC)
122 ZEND_ME(SplDoublyLinkedList, count, arginfo_class_SplDoublyLinkedList_count, ZEND_ACC_PUBLIC)
123 ZEND_ME(SplDoublyLinkedList, isEmpty, arginfo_class_SplDoublyLinkedList_isEmpty, ZEND_ACC_PUBLIC)
124 ZEND_ME(SplDoublyLinkedList, setIteratorMode, arginfo_class_SplDoublyLinkedList_setIteratorMode, ZEND_ACC_PUBLIC)
125 ZEND_ME(SplDoublyLinkedList, getIteratorMode, arginfo_class_SplDoublyLinkedList_getIteratorMode, ZEND_ACC_PUBLIC)
126 ZEND_ME(SplDoublyLinkedList, offsetExists, arginfo_class_SplDoublyLinkedList_offsetExists, ZEND_ACC_PUBLIC)
127 ZEND_ME(SplDoublyLinkedList, offsetGet, arginfo_class_SplDoublyLinkedList_offsetGet, ZEND_ACC_PUBLIC)
128 ZEND_ME(SplDoublyLinkedList, offsetSet, arginfo_class_SplDoublyLinkedList_offsetSet, ZEND_ACC_PUBLIC)
129 ZEND_ME(SplDoublyLinkedList, offsetUnset, arginfo_class_SplDoublyLinkedList_offsetUnset, ZEND_ACC_PUBLIC)
130 ZEND_ME(SplDoublyLinkedList, rewind, arginfo_class_SplDoublyLinkedList_rewind, ZEND_ACC_PUBLIC)
131 ZEND_ME(SplDoublyLinkedList, current, arginfo_class_SplDoublyLinkedList_current, ZEND_ACC_PUBLIC)
132 ZEND_ME(SplDoublyLinkedList, key, arginfo_class_SplDoublyLinkedList_key, ZEND_ACC_PUBLIC)
133 ZEND_ME(SplDoublyLinkedList, prev, arginfo_class_SplDoublyLinkedList_prev, ZEND_ACC_PUBLIC)
134 ZEND_ME(SplDoublyLinkedList, next, arginfo_class_SplDoublyLinkedList_next, ZEND_ACC_PUBLIC)
135 ZEND_ME(SplDoublyLinkedList, valid, arginfo_class_SplDoublyLinkedList_valid, ZEND_ACC_PUBLIC)
136 ZEND_ME(SplDoublyLinkedList, unserialize, arginfo_class_SplDoublyLinkedList_unserialize, ZEND_ACC_PUBLIC)
137 ZEND_ME(SplDoublyLinkedList, serialize, arginfo_class_SplDoublyLinkedList_serialize, ZEND_ACC_PUBLIC)
138 ZEND_ME(SplDoublyLinkedList, __serialize, arginfo_class_SplDoublyLinkedList___serialize, ZEND_ACC_PUBLIC)
139 ZEND_ME(SplDoublyLinkedList, __unserialize, arginfo_class_SplDoublyLinkedList___unserialize, ZEND_ACC_PUBLIC)
140 ZEND_FE_END
141 };
142
143 static const zend_function_entry class_SplQueue_methods[] = {
144 ZEND_RAW_FENTRY("enqueue", zim_SplDoublyLinkedList_push, arginfo_class_SplQueue_enqueue, ZEND_ACC_PUBLIC, NULL, NULL)
145 ZEND_RAW_FENTRY("dequeue", zim_SplDoublyLinkedList_shift, arginfo_class_SplQueue_dequeue, ZEND_ACC_PUBLIC, NULL, NULL)
146 ZEND_FE_END
147 };
148
register_class_SplDoublyLinkedList(zend_class_entry * class_entry_Iterator,zend_class_entry * class_entry_Countable,zend_class_entry * class_entry_ArrayAccess,zend_class_entry * class_entry_Serializable)149 static zend_class_entry *register_class_SplDoublyLinkedList(zend_class_entry *class_entry_Iterator, zend_class_entry *class_entry_Countable, zend_class_entry *class_entry_ArrayAccess, zend_class_entry *class_entry_Serializable)
150 {
151 zend_class_entry ce, *class_entry;
152
153 INIT_CLASS_ENTRY(ce, "SplDoublyLinkedList", class_SplDoublyLinkedList_methods);
154 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
155 zend_class_implements(class_entry, 4, class_entry_Iterator, class_entry_Countable, class_entry_ArrayAccess, class_entry_Serializable);
156
157 zval const_IT_MODE_LIFO_value;
158 ZVAL_LONG(&const_IT_MODE_LIFO_value, SPL_DLLIST_IT_LIFO);
159 zend_string *const_IT_MODE_LIFO_name = zend_string_init_interned("IT_MODE_LIFO", sizeof("IT_MODE_LIFO") - 1, 1);
160 zend_declare_typed_class_constant(class_entry, const_IT_MODE_LIFO_name, &const_IT_MODE_LIFO_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
161 zend_string_release(const_IT_MODE_LIFO_name);
162
163 zval const_IT_MODE_FIFO_value;
164 ZVAL_LONG(&const_IT_MODE_FIFO_value, SPL_DLLIST_IT_FIFO);
165 zend_string *const_IT_MODE_FIFO_name = zend_string_init_interned("IT_MODE_FIFO", sizeof("IT_MODE_FIFO") - 1, 1);
166 zend_declare_typed_class_constant(class_entry, const_IT_MODE_FIFO_name, &const_IT_MODE_FIFO_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
167 zend_string_release(const_IT_MODE_FIFO_name);
168
169 zval const_IT_MODE_DELETE_value;
170 ZVAL_LONG(&const_IT_MODE_DELETE_value, SPL_DLLIST_IT_DELETE);
171 zend_string *const_IT_MODE_DELETE_name = zend_string_init_interned("IT_MODE_DELETE", sizeof("IT_MODE_DELETE") - 1, 1);
172 zend_declare_typed_class_constant(class_entry, const_IT_MODE_DELETE_name, &const_IT_MODE_DELETE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
173 zend_string_release(const_IT_MODE_DELETE_name);
174
175 zval const_IT_MODE_KEEP_value;
176 ZVAL_LONG(&const_IT_MODE_KEEP_value, SPL_DLLIST_IT_KEEP);
177 zend_string *const_IT_MODE_KEEP_name = zend_string_init_interned("IT_MODE_KEEP", sizeof("IT_MODE_KEEP") - 1, 1);
178 zend_declare_typed_class_constant(class_entry, const_IT_MODE_KEEP_name, &const_IT_MODE_KEEP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
179 zend_string_release(const_IT_MODE_KEEP_name);
180
181 return class_entry;
182 }
183
register_class_SplQueue(zend_class_entry * class_entry_SplDoublyLinkedList)184 static zend_class_entry *register_class_SplQueue(zend_class_entry *class_entry_SplDoublyLinkedList)
185 {
186 zend_class_entry ce, *class_entry;
187
188 INIT_CLASS_ENTRY(ce, "SplQueue", class_SplQueue_methods);
189 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_SplDoublyLinkedList, 0);
190
191 return class_entry;
192 }
193
register_class_SplStack(zend_class_entry * class_entry_SplDoublyLinkedList)194 static zend_class_entry *register_class_SplStack(zend_class_entry *class_entry_SplDoublyLinkedList)
195 {
196 zend_class_entry ce, *class_entry;
197
198 INIT_CLASS_ENTRY(ce, "SplStack", NULL);
199 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_SplDoublyLinkedList, 0);
200
201 return class_entry;
202 }
203