1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 47273e114c9c7089bf708a2f18f2e9e522abceb6 */
3
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_compare, 0, 2, IS_LONG, 0)
5 ZEND_ARG_TYPE_INFO(0, priority1, IS_MIXED, 0)
6 ZEND_ARG_TYPE_INFO(0, priority2, IS_MIXED, 0)
7 ZEND_END_ARG_INFO()
8
9 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_insert, 0, 2, IS_TRUE, 0)
10 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
11 ZEND_ARG_TYPE_INFO(0, priority, IS_MIXED, 0)
12 ZEND_END_ARG_INFO()
13
14 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_setExtractFlags, 0, 1, IS_LONG, 0)
15 ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
16 ZEND_END_ARG_INFO()
17
18 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_top, 0, 0, IS_MIXED, 0)
19 ZEND_END_ARG_INFO()
20
21 #define arginfo_class_SplPriorityQueue_extract arginfo_class_SplPriorityQueue_top
22
23 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_count, 0, 0, IS_LONG, 0)
24 ZEND_END_ARG_INFO()
25
26 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_isEmpty, 0, 0, _IS_BOOL, 0)
27 ZEND_END_ARG_INFO()
28
29 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_rewind, 0, 0, IS_VOID, 0)
30 ZEND_END_ARG_INFO()
31
32 #define arginfo_class_SplPriorityQueue_current arginfo_class_SplPriorityQueue_top
33
34 #define arginfo_class_SplPriorityQueue_key arginfo_class_SplPriorityQueue_count
35
36 #define arginfo_class_SplPriorityQueue_next arginfo_class_SplPriorityQueue_rewind
37
38 #define arginfo_class_SplPriorityQueue_valid arginfo_class_SplPriorityQueue_isEmpty
39
40 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_recoverFromCorruption, 0, 0, IS_TRUE, 0)
41 ZEND_END_ARG_INFO()
42
43 #define arginfo_class_SplPriorityQueue_isCorrupted arginfo_class_SplPriorityQueue_isEmpty
44
45 #define arginfo_class_SplPriorityQueue_getExtractFlags arginfo_class_SplPriorityQueue_count
46
47 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue___debugInfo, 0, 0, IS_ARRAY, 0)
48 ZEND_END_ARG_INFO()
49
50 #define arginfo_class_SplHeap_extract arginfo_class_SplPriorityQueue_top
51
52 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplHeap_insert, 0, 1, IS_TRUE, 0)
53 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
54 ZEND_END_ARG_INFO()
55
56 #define arginfo_class_SplHeap_top arginfo_class_SplPriorityQueue_top
57
58 #define arginfo_class_SplHeap_count arginfo_class_SplPriorityQueue_count
59
60 #define arginfo_class_SplHeap_isEmpty arginfo_class_SplPriorityQueue_isEmpty
61
62 #define arginfo_class_SplHeap_rewind arginfo_class_SplPriorityQueue_rewind
63
64 #define arginfo_class_SplHeap_current arginfo_class_SplPriorityQueue_top
65
66 #define arginfo_class_SplHeap_key arginfo_class_SplPriorityQueue_count
67
68 #define arginfo_class_SplHeap_next arginfo_class_SplPriorityQueue_rewind
69
70 #define arginfo_class_SplHeap_valid arginfo_class_SplPriorityQueue_isEmpty
71
72 #define arginfo_class_SplHeap_recoverFromCorruption arginfo_class_SplPriorityQueue_recoverFromCorruption
73
74 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplHeap_compare, 0, 2, IS_LONG, 0)
75 ZEND_ARG_TYPE_INFO(0, value1, IS_MIXED, 0)
76 ZEND_ARG_TYPE_INFO(0, value2, IS_MIXED, 0)
77 ZEND_END_ARG_INFO()
78
79 #define arginfo_class_SplHeap_isCorrupted arginfo_class_SplPriorityQueue_isEmpty
80
81 #define arginfo_class_SplHeap___debugInfo arginfo_class_SplPriorityQueue___debugInfo
82
83 #define arginfo_class_SplMinHeap_compare arginfo_class_SplHeap_compare
84
85 #define arginfo_class_SplMaxHeap_compare arginfo_class_SplHeap_compare
86
87 ZEND_METHOD(SplPriorityQueue, compare);
88 ZEND_METHOD(SplPriorityQueue, insert);
89 ZEND_METHOD(SplPriorityQueue, setExtractFlags);
90 ZEND_METHOD(SplPriorityQueue, top);
91 ZEND_METHOD(SplPriorityQueue, extract);
92 ZEND_METHOD(SplHeap, count);
93 ZEND_METHOD(SplHeap, isEmpty);
94 ZEND_METHOD(SplHeap, rewind);
95 ZEND_METHOD(SplPriorityQueue, current);
96 ZEND_METHOD(SplHeap, key);
97 ZEND_METHOD(SplHeap, next);
98 ZEND_METHOD(SplHeap, valid);
99 ZEND_METHOD(SplHeap, recoverFromCorruption);
100 ZEND_METHOD(SplHeap, isCorrupted);
101 ZEND_METHOD(SplPriorityQueue, getExtractFlags);
102 ZEND_METHOD(SplPriorityQueue, __debugInfo);
103 ZEND_METHOD(SplHeap, extract);
104 ZEND_METHOD(SplHeap, insert);
105 ZEND_METHOD(SplHeap, top);
106 ZEND_METHOD(SplHeap, current);
107 ZEND_METHOD(SplHeap, __debugInfo);
108 ZEND_METHOD(SplMinHeap, compare);
109 ZEND_METHOD(SplMaxHeap, compare);
110
111 static const zend_function_entry class_SplPriorityQueue_methods[] = {
112 ZEND_ME(SplPriorityQueue, compare, arginfo_class_SplPriorityQueue_compare, ZEND_ACC_PUBLIC)
113 ZEND_ME(SplPriorityQueue, insert, arginfo_class_SplPriorityQueue_insert, ZEND_ACC_PUBLIC)
114 ZEND_ME(SplPriorityQueue, setExtractFlags, arginfo_class_SplPriorityQueue_setExtractFlags, ZEND_ACC_PUBLIC)
115 ZEND_ME(SplPriorityQueue, top, arginfo_class_SplPriorityQueue_top, ZEND_ACC_PUBLIC)
116 ZEND_ME(SplPriorityQueue, extract, arginfo_class_SplPriorityQueue_extract, ZEND_ACC_PUBLIC)
117 ZEND_RAW_FENTRY("count", zim_SplHeap_count, arginfo_class_SplPriorityQueue_count, ZEND_ACC_PUBLIC, NULL, NULL)
118 ZEND_RAW_FENTRY("isEmpty", zim_SplHeap_isEmpty, arginfo_class_SplPriorityQueue_isEmpty, ZEND_ACC_PUBLIC, NULL, NULL)
119 ZEND_RAW_FENTRY("rewind", zim_SplHeap_rewind, arginfo_class_SplPriorityQueue_rewind, ZEND_ACC_PUBLIC, NULL, NULL)
120 ZEND_ME(SplPriorityQueue, current, arginfo_class_SplPriorityQueue_current, ZEND_ACC_PUBLIC)
121 ZEND_RAW_FENTRY("key", zim_SplHeap_key, arginfo_class_SplPriorityQueue_key, ZEND_ACC_PUBLIC, NULL, NULL)
122 ZEND_RAW_FENTRY("next", zim_SplHeap_next, arginfo_class_SplPriorityQueue_next, ZEND_ACC_PUBLIC, NULL, NULL)
123 ZEND_RAW_FENTRY("valid", zim_SplHeap_valid, arginfo_class_SplPriorityQueue_valid, ZEND_ACC_PUBLIC, NULL, NULL)
124 ZEND_RAW_FENTRY("recoverFromCorruption", zim_SplHeap_recoverFromCorruption, arginfo_class_SplPriorityQueue_recoverFromCorruption, ZEND_ACC_PUBLIC, NULL, NULL)
125 ZEND_RAW_FENTRY("isCorrupted", zim_SplHeap_isCorrupted, arginfo_class_SplPriorityQueue_isCorrupted, ZEND_ACC_PUBLIC, NULL, NULL)
126 ZEND_ME(SplPriorityQueue, getExtractFlags, arginfo_class_SplPriorityQueue_getExtractFlags, ZEND_ACC_PUBLIC)
127 ZEND_ME(SplPriorityQueue, __debugInfo, arginfo_class_SplPriorityQueue___debugInfo, ZEND_ACC_PUBLIC)
128 ZEND_FE_END
129 };
130
131 static const zend_function_entry class_SplHeap_methods[] = {
132 ZEND_ME(SplHeap, extract, arginfo_class_SplHeap_extract, ZEND_ACC_PUBLIC)
133 ZEND_ME(SplHeap, insert, arginfo_class_SplHeap_insert, ZEND_ACC_PUBLIC)
134 ZEND_ME(SplHeap, top, arginfo_class_SplHeap_top, ZEND_ACC_PUBLIC)
135 ZEND_ME(SplHeap, count, arginfo_class_SplHeap_count, ZEND_ACC_PUBLIC)
136 ZEND_ME(SplHeap, isEmpty, arginfo_class_SplHeap_isEmpty, ZEND_ACC_PUBLIC)
137 ZEND_ME(SplHeap, rewind, arginfo_class_SplHeap_rewind, ZEND_ACC_PUBLIC)
138 ZEND_ME(SplHeap, current, arginfo_class_SplHeap_current, ZEND_ACC_PUBLIC)
139 ZEND_ME(SplHeap, key, arginfo_class_SplHeap_key, ZEND_ACC_PUBLIC)
140 ZEND_ME(SplHeap, next, arginfo_class_SplHeap_next, ZEND_ACC_PUBLIC)
141 ZEND_ME(SplHeap, valid, arginfo_class_SplHeap_valid, ZEND_ACC_PUBLIC)
142 ZEND_ME(SplHeap, recoverFromCorruption, arginfo_class_SplHeap_recoverFromCorruption, ZEND_ACC_PUBLIC)
143 ZEND_RAW_FENTRY("compare", NULL, arginfo_class_SplHeap_compare, ZEND_ACC_PROTECTED|ZEND_ACC_ABSTRACT, NULL, NULL)
144 ZEND_ME(SplHeap, isCorrupted, arginfo_class_SplHeap_isCorrupted, ZEND_ACC_PUBLIC)
145 ZEND_ME(SplHeap, __debugInfo, arginfo_class_SplHeap___debugInfo, ZEND_ACC_PUBLIC)
146 ZEND_FE_END
147 };
148
149 static const zend_function_entry class_SplMinHeap_methods[] = {
150 ZEND_ME(SplMinHeap, compare, arginfo_class_SplMinHeap_compare, ZEND_ACC_PROTECTED)
151 ZEND_FE_END
152 };
153
154 static const zend_function_entry class_SplMaxHeap_methods[] = {
155 ZEND_ME(SplMaxHeap, compare, arginfo_class_SplMaxHeap_compare, ZEND_ACC_PROTECTED)
156 ZEND_FE_END
157 };
158
register_class_SplPriorityQueue(zend_class_entry * class_entry_Iterator,zend_class_entry * class_entry_Countable)159 static zend_class_entry *register_class_SplPriorityQueue(zend_class_entry *class_entry_Iterator, zend_class_entry *class_entry_Countable)
160 {
161 zend_class_entry ce, *class_entry;
162
163 INIT_CLASS_ENTRY(ce, "SplPriorityQueue", class_SplPriorityQueue_methods);
164 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
165 zend_class_implements(class_entry, 2, class_entry_Iterator, class_entry_Countable);
166
167 zval const_EXTR_BOTH_value;
168 ZVAL_LONG(&const_EXTR_BOTH_value, SPL_PQUEUE_EXTR_BOTH);
169 zend_string *const_EXTR_BOTH_name = zend_string_init_interned("EXTR_BOTH", sizeof("EXTR_BOTH") - 1, 1);
170 zend_declare_typed_class_constant(class_entry, const_EXTR_BOTH_name, &const_EXTR_BOTH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
171 zend_string_release(const_EXTR_BOTH_name);
172
173 zval const_EXTR_PRIORITY_value;
174 ZVAL_LONG(&const_EXTR_PRIORITY_value, SPL_PQUEUE_EXTR_PRIORITY);
175 zend_string *const_EXTR_PRIORITY_name = zend_string_init_interned("EXTR_PRIORITY", sizeof("EXTR_PRIORITY") - 1, 1);
176 zend_declare_typed_class_constant(class_entry, const_EXTR_PRIORITY_name, &const_EXTR_PRIORITY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
177 zend_string_release(const_EXTR_PRIORITY_name);
178
179 zval const_EXTR_DATA_value;
180 ZVAL_LONG(&const_EXTR_DATA_value, SPL_PQUEUE_EXTR_DATA);
181 zend_string *const_EXTR_DATA_name = zend_string_init_interned("EXTR_DATA", sizeof("EXTR_DATA") - 1, 1);
182 zend_declare_typed_class_constant(class_entry, const_EXTR_DATA_name, &const_EXTR_DATA_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
183 zend_string_release(const_EXTR_DATA_name);
184
185 return class_entry;
186 }
187
register_class_SplHeap(zend_class_entry * class_entry_Iterator,zend_class_entry * class_entry_Countable)188 static zend_class_entry *register_class_SplHeap(zend_class_entry *class_entry_Iterator, zend_class_entry *class_entry_Countable)
189 {
190 zend_class_entry ce, *class_entry;
191
192 INIT_CLASS_ENTRY(ce, "SplHeap", class_SplHeap_methods);
193 class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_ABSTRACT);
194 zend_class_implements(class_entry, 2, class_entry_Iterator, class_entry_Countable);
195
196 return class_entry;
197 }
198
register_class_SplMinHeap(zend_class_entry * class_entry_SplHeap)199 static zend_class_entry *register_class_SplMinHeap(zend_class_entry *class_entry_SplHeap)
200 {
201 zend_class_entry ce, *class_entry;
202
203 INIT_CLASS_ENTRY(ce, "SplMinHeap", class_SplMinHeap_methods);
204 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_SplHeap, 0);
205
206 return class_entry;
207 }
208
register_class_SplMaxHeap(zend_class_entry * class_entry_SplHeap)209 static zend_class_entry *register_class_SplMaxHeap(zend_class_entry *class_entry_SplHeap)
210 {
211 zend_class_entry ce, *class_entry;
212
213 INIT_CLASS_ENTRY(ce, "SplMaxHeap", class_SplMaxHeap_methods);
214 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_SplHeap, 0);
215
216 return class_entry;
217 }
218