/src/php-src/ext/standard/io_poll_arginfo.h
Line | Count | Source |
1 | | /* This is a generated file, edit io_poll.stub.php instead. |
2 | | * Stub hash: a7450146c5b3b3f3486611c83a55cf0cc932b27a |
3 | | * Has decl header: yes */ |
4 | | |
5 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Backend_getAvailableBackends, 0, 0, IS_ARRAY, 0) |
6 | | ZEND_END_ARG_INFO() |
7 | | |
8 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Backend_isAvailable, 0, 0, _IS_BOOL, 0) |
9 | | ZEND_END_ARG_INFO() |
10 | | |
11 | | #define arginfo_class_Io_Poll_Backend_supportsEdgeTriggering arginfo_class_Io_Poll_Backend_isAvailable |
12 | | |
13 | | ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Io_Poll_Watcher___construct, 0, 0, 0) |
14 | | ZEND_END_ARG_INFO() |
15 | | |
16 | | ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Io_Poll_Watcher_getHandle, 0, 0, Io\\Poll\\Handle, 0) |
17 | | ZEND_END_ARG_INFO() |
18 | | |
19 | | #define arginfo_class_Io_Poll_Watcher_getWatchedEvents arginfo_class_Io_Poll_Backend_getAvailableBackends |
20 | | |
21 | | #define arginfo_class_Io_Poll_Watcher_getTriggeredEvents arginfo_class_Io_Poll_Backend_getAvailableBackends |
22 | | |
23 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Watcher_getData, 0, 0, IS_MIXED, 0) |
24 | | ZEND_END_ARG_INFO() |
25 | | |
26 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Watcher_hasTriggered, 0, 1, _IS_BOOL, 0) |
27 | | ZEND_ARG_OBJ_INFO(0, event, Io\\Poll\\Event, 0) |
28 | | ZEND_END_ARG_INFO() |
29 | | |
30 | | #define arginfo_class_Io_Poll_Watcher_isActive arginfo_class_Io_Poll_Backend_isAvailable |
31 | | |
32 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Watcher_modify, 0, 1, IS_VOID, 0) |
33 | | ZEND_ARG_TYPE_INFO(0, events, IS_ARRAY, 0) |
34 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data, IS_MIXED, 0, "null") |
35 | | ZEND_END_ARG_INFO() |
36 | | |
37 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Watcher_modifyEvents, 0, 1, IS_VOID, 0) |
38 | | ZEND_ARG_TYPE_INFO(0, events, IS_ARRAY, 0) |
39 | | ZEND_END_ARG_INFO() |
40 | | |
41 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Watcher_modifyData, 0, 1, IS_VOID, 0) |
42 | | ZEND_ARG_TYPE_INFO(0, data, IS_MIXED, 0) |
43 | | ZEND_END_ARG_INFO() |
44 | | |
45 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Watcher_remove, 0, 0, IS_VOID, 0) |
46 | | ZEND_END_ARG_INFO() |
47 | | |
48 | | ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Io_Poll_Context___construct, 0, 0, 0) |
49 | | ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, backend, Io\\Poll\\Backend, 0, "Io\\Poll\\Backend::Auto") |
50 | | ZEND_END_ARG_INFO() |
51 | | |
52 | | ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Io_Poll_Context_add, 0, 2, Io\\Poll\\Watcher, 0) |
53 | | ZEND_ARG_OBJ_INFO(0, handle, Io\\Poll\\Handle, 0) |
54 | | ZEND_ARG_TYPE_INFO(0, events, IS_ARRAY, 0) |
55 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data, IS_MIXED, 0, "null") |
56 | | ZEND_END_ARG_INFO() |
57 | | |
58 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Io_Poll_Context_wait, 0, 0, IS_ARRAY, 0) |
59 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeoutSeconds, IS_LONG, 1, "null") |
60 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeoutMicroseconds, IS_LONG, 0, "0") |
61 | | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxEvents, IS_LONG, 1, "null") |
62 | | ZEND_END_ARG_INFO() |
63 | | |
64 | | ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Io_Poll_Context_getBackend, 0, 0, Io\\Poll\\Backend, 0) |
65 | | ZEND_END_ARG_INFO() |
66 | | |
67 | | ZEND_BEGIN_ARG_INFO_EX(arginfo_class_StreamPollHandle___construct, 0, 0, 1) |
68 | | ZEND_ARG_INFO(0, stream) |
69 | | ZEND_END_ARG_INFO() |
70 | | |
71 | | #define arginfo_class_StreamPollHandle_getStream arginfo_class_Io_Poll_Watcher___construct |
72 | | |
73 | | #define arginfo_class_StreamPollHandle_isValid arginfo_class_Io_Poll_Backend_isAvailable |
74 | | |
75 | | ZEND_METHOD(Io_Poll_Backend, getAvailableBackends); |
76 | | ZEND_METHOD(Io_Poll_Backend, isAvailable); |
77 | | ZEND_METHOD(Io_Poll_Backend, supportsEdgeTriggering); |
78 | | ZEND_METHOD(Io_Poll_Watcher, __construct); |
79 | | ZEND_METHOD(Io_Poll_Watcher, getHandle); |
80 | | ZEND_METHOD(Io_Poll_Watcher, getWatchedEvents); |
81 | | ZEND_METHOD(Io_Poll_Watcher, getTriggeredEvents); |
82 | | ZEND_METHOD(Io_Poll_Watcher, getData); |
83 | | ZEND_METHOD(Io_Poll_Watcher, hasTriggered); |
84 | | ZEND_METHOD(Io_Poll_Watcher, isActive); |
85 | | ZEND_METHOD(Io_Poll_Watcher, modify); |
86 | | ZEND_METHOD(Io_Poll_Watcher, modifyEvents); |
87 | | ZEND_METHOD(Io_Poll_Watcher, modifyData); |
88 | | ZEND_METHOD(Io_Poll_Watcher, remove); |
89 | | ZEND_METHOD(Io_Poll_Context, __construct); |
90 | | ZEND_METHOD(Io_Poll_Context, add); |
91 | | ZEND_METHOD(Io_Poll_Context, wait); |
92 | | ZEND_METHOD(Io_Poll_Context, getBackend); |
93 | | ZEND_METHOD(StreamPollHandle, __construct); |
94 | | ZEND_METHOD(StreamPollHandle, getStream); |
95 | | ZEND_METHOD(StreamPollHandle, isValid); |
96 | | |
97 | | static const zend_function_entry class_Io_Poll_Backend_methods[] = { |
98 | | ZEND_ME(Io_Poll_Backend, getAvailableBackends, arginfo_class_Io_Poll_Backend_getAvailableBackends, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) |
99 | | ZEND_ME(Io_Poll_Backend, isAvailable, arginfo_class_Io_Poll_Backend_isAvailable, ZEND_ACC_PUBLIC) |
100 | | ZEND_ME(Io_Poll_Backend, supportsEdgeTriggering, arginfo_class_Io_Poll_Backend_supportsEdgeTriggering, ZEND_ACC_PUBLIC) |
101 | | ZEND_FE_END |
102 | | }; |
103 | | |
104 | | static const zend_function_entry class_Io_Poll_Watcher_methods[] = { |
105 | | ZEND_ME(Io_Poll_Watcher, __construct, arginfo_class_Io_Poll_Watcher___construct, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL) |
106 | | ZEND_ME(Io_Poll_Watcher, getHandle, arginfo_class_Io_Poll_Watcher_getHandle, ZEND_ACC_PUBLIC) |
107 | | ZEND_ME(Io_Poll_Watcher, getWatchedEvents, arginfo_class_Io_Poll_Watcher_getWatchedEvents, ZEND_ACC_PUBLIC) |
108 | | ZEND_ME(Io_Poll_Watcher, getTriggeredEvents, arginfo_class_Io_Poll_Watcher_getTriggeredEvents, ZEND_ACC_PUBLIC) |
109 | | ZEND_ME(Io_Poll_Watcher, getData, arginfo_class_Io_Poll_Watcher_getData, ZEND_ACC_PUBLIC) |
110 | | ZEND_ME(Io_Poll_Watcher, hasTriggered, arginfo_class_Io_Poll_Watcher_hasTriggered, ZEND_ACC_PUBLIC) |
111 | | ZEND_ME(Io_Poll_Watcher, isActive, arginfo_class_Io_Poll_Watcher_isActive, ZEND_ACC_PUBLIC) |
112 | | ZEND_ME(Io_Poll_Watcher, modify, arginfo_class_Io_Poll_Watcher_modify, ZEND_ACC_PUBLIC) |
113 | | ZEND_ME(Io_Poll_Watcher, modifyEvents, arginfo_class_Io_Poll_Watcher_modifyEvents, ZEND_ACC_PUBLIC) |
114 | | ZEND_ME(Io_Poll_Watcher, modifyData, arginfo_class_Io_Poll_Watcher_modifyData, ZEND_ACC_PUBLIC) |
115 | | ZEND_ME(Io_Poll_Watcher, remove, arginfo_class_Io_Poll_Watcher_remove, ZEND_ACC_PUBLIC) |
116 | | ZEND_FE_END |
117 | | }; |
118 | | |
119 | | static const zend_function_entry class_Io_Poll_Context_methods[] = { |
120 | | ZEND_ME(Io_Poll_Context, __construct, arginfo_class_Io_Poll_Context___construct, ZEND_ACC_PUBLIC) |
121 | | ZEND_ME(Io_Poll_Context, add, arginfo_class_Io_Poll_Context_add, ZEND_ACC_PUBLIC) |
122 | | ZEND_ME(Io_Poll_Context, wait, arginfo_class_Io_Poll_Context_wait, ZEND_ACC_PUBLIC) |
123 | | ZEND_ME(Io_Poll_Context, getBackend, arginfo_class_Io_Poll_Context_getBackend, ZEND_ACC_PUBLIC) |
124 | | ZEND_FE_END |
125 | | }; |
126 | | |
127 | | static const zend_function_entry class_StreamPollHandle_methods[] = { |
128 | | ZEND_ME(StreamPollHandle, __construct, arginfo_class_StreamPollHandle___construct, ZEND_ACC_PUBLIC) |
129 | | ZEND_ME(StreamPollHandle, getStream, arginfo_class_StreamPollHandle_getStream, ZEND_ACC_PUBLIC) |
130 | | ZEND_ME(StreamPollHandle, isValid, arginfo_class_StreamPollHandle_isValid, ZEND_ACC_PUBLIC) |
131 | | ZEND_FE_END |
132 | | }; |
133 | | |
134 | | static zend_class_entry *register_class_Io_IoException(zend_class_entry *class_entry_Exception) |
135 | 16 | { |
136 | 16 | zend_class_entry ce, *class_entry; |
137 | | |
138 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io", "IoException", NULL); |
139 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Exception, 0); |
140 | | |
141 | 16 | return class_entry; |
142 | 16 | } |
143 | | |
144 | | static zend_class_entry *register_class_Io_Poll_Backend(void) |
145 | 16 | { |
146 | 16 | zend_class_entry *class_entry = zend_register_internal_enum("Io\\Poll\\Backend", IS_UNDEF, class_Io_Poll_Backend_methods); |
147 | | |
148 | 16 | zend_enum_add_case_cstr(class_entry, "Auto", NULL); |
149 | | |
150 | 16 | zend_enum_add_case_cstr(class_entry, "Poll", NULL); |
151 | | |
152 | 16 | zend_enum_add_case_cstr(class_entry, "Epoll", NULL); |
153 | | |
154 | 16 | zend_enum_add_case_cstr(class_entry, "Kqueue", NULL); |
155 | | |
156 | 16 | zend_enum_add_case_cstr(class_entry, "EventPorts", NULL); |
157 | | |
158 | 16 | zend_enum_add_case_cstr(class_entry, "WSAPoll", NULL); |
159 | | |
160 | 16 | return class_entry; |
161 | 16 | } |
162 | | |
163 | | static zend_class_entry *register_class_Io_Poll_Event(void) |
164 | 16 | { |
165 | 16 | zend_class_entry *class_entry = zend_register_internal_enum("Io\\Poll\\Event", IS_UNDEF, NULL); |
166 | | |
167 | 16 | zend_enum_add_case_cstr(class_entry, "Read", NULL); |
168 | | |
169 | 16 | zend_enum_add_case_cstr(class_entry, "Write", NULL); |
170 | | |
171 | 16 | zend_enum_add_case_cstr(class_entry, "Error", NULL); |
172 | | |
173 | 16 | zend_enum_add_case_cstr(class_entry, "HangUp", NULL); |
174 | | |
175 | 16 | zend_enum_add_case_cstr(class_entry, "ReadHangUp", NULL); |
176 | | |
177 | 16 | zend_enum_add_case_cstr(class_entry, "OneShot", NULL); |
178 | | |
179 | 16 | zend_enum_add_case_cstr(class_entry, "EdgeTriggered", NULL); |
180 | | |
181 | 16 | return class_entry; |
182 | 16 | } |
183 | | |
184 | | static zend_class_entry *register_class_Io_Poll_Handle(void) |
185 | 16 | { |
186 | 16 | zend_class_entry ce, *class_entry; |
187 | | |
188 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "Handle", NULL); |
189 | 16 | class_entry = zend_register_internal_interface(&ce); |
190 | | |
191 | 16 | return class_entry; |
192 | 16 | } |
193 | | |
194 | | static zend_class_entry *register_class_Io_Poll_Watcher(void) |
195 | 16 | { |
196 | 16 | zend_class_entry ce, *class_entry; |
197 | | |
198 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "Watcher", class_Io_Poll_Watcher_methods); |
199 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE); |
200 | | |
201 | 16 | return class_entry; |
202 | 16 | } |
203 | | |
204 | | static zend_class_entry *register_class_Io_Poll_Context(void) |
205 | 16 | { |
206 | 16 | zend_class_entry ce, *class_entry; |
207 | | |
208 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "Context", class_Io_Poll_Context_methods); |
209 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE); |
210 | | |
211 | 16 | return class_entry; |
212 | 16 | } |
213 | | |
214 | | static zend_class_entry *register_class_Io_Poll_PollException(zend_class_entry *class_entry_Io_IoException) |
215 | 16 | { |
216 | 16 | zend_class_entry ce, *class_entry; |
217 | | |
218 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "PollException", NULL); |
219 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_IoException, 0); |
220 | | |
221 | 16 | return class_entry; |
222 | 16 | } |
223 | | |
224 | | static zend_class_entry *register_class_Io_Poll_FailedPollOperationException(zend_class_entry *class_entry_Io_Poll_PollException) |
225 | 16 | { |
226 | 16 | zend_class_entry ce, *class_entry; |
227 | | |
228 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "FailedPollOperationException", NULL); |
229 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_PollException, ZEND_ACC_ABSTRACT); |
230 | | |
231 | 16 | zval const_ERROR_NONE_value; |
232 | 16 | ZVAL_LONG(&const_ERROR_NONE_value, PHP_POLL_ERROR_CODE_NONE); |
233 | 16 | zend_string *const_ERROR_NONE_name = zend_string_init_interned("ERROR_NONE", sizeof("ERROR_NONE") - 1, true); |
234 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_NONE_name, &const_ERROR_NONE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
235 | 16 | zend_string_release_ex(const_ERROR_NONE_name, true); |
236 | | |
237 | 16 | zval const_ERROR_SYSTEM_value; |
238 | 16 | ZVAL_LONG(&const_ERROR_SYSTEM_value, PHP_POLL_ERROR_CODE_SYSTEM); |
239 | 16 | zend_string *const_ERROR_SYSTEM_name = zend_string_init_interned("ERROR_SYSTEM", sizeof("ERROR_SYSTEM") - 1, true); |
240 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_SYSTEM_name, &const_ERROR_SYSTEM_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
241 | 16 | zend_string_release_ex(const_ERROR_SYSTEM_name, true); |
242 | | |
243 | 16 | zval const_ERROR_NOMEM_value; |
244 | 16 | ZVAL_LONG(&const_ERROR_NOMEM_value, PHP_POLL_ERROR_CODE_NOMEM); |
245 | 16 | zend_string *const_ERROR_NOMEM_name = zend_string_init_interned("ERROR_NOMEM", sizeof("ERROR_NOMEM") - 1, true); |
246 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_NOMEM_name, &const_ERROR_NOMEM_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
247 | 16 | zend_string_release_ex(const_ERROR_NOMEM_name, true); |
248 | | |
249 | 16 | zval const_ERROR_INVALID_value; |
250 | 16 | ZVAL_LONG(&const_ERROR_INVALID_value, PHP_POLL_ERROR_CODE_INVALID); |
251 | 16 | zend_string *const_ERROR_INVALID_name = zend_string_init_interned("ERROR_INVALID", sizeof("ERROR_INVALID") - 1, true); |
252 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_INVALID_name, &const_ERROR_INVALID_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
253 | 16 | zend_string_release_ex(const_ERROR_INVALID_name, true); |
254 | | |
255 | 16 | zval const_ERROR_EXISTS_value; |
256 | 16 | ZVAL_LONG(&const_ERROR_EXISTS_value, PHP_POLL_ERROR_CODE_EXISTS); |
257 | 16 | zend_string *const_ERROR_EXISTS_name = zend_string_init_interned("ERROR_EXISTS", sizeof("ERROR_EXISTS") - 1, true); |
258 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_EXISTS_name, &const_ERROR_EXISTS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
259 | 16 | zend_string_release_ex(const_ERROR_EXISTS_name, true); |
260 | | |
261 | 16 | zval const_ERROR_NOTFOUND_value; |
262 | 16 | ZVAL_LONG(&const_ERROR_NOTFOUND_value, PHP_POLL_ERROR_CODE_NOTFOUND); |
263 | 16 | zend_string *const_ERROR_NOTFOUND_name = zend_string_init_interned("ERROR_NOTFOUND", sizeof("ERROR_NOTFOUND") - 1, true); |
264 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_NOTFOUND_name, &const_ERROR_NOTFOUND_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
265 | 16 | zend_string_release_ex(const_ERROR_NOTFOUND_name, true); |
266 | | |
267 | 16 | zval const_ERROR_TIMEOUT_value; |
268 | 16 | ZVAL_LONG(&const_ERROR_TIMEOUT_value, PHP_POLL_ERROR_CODE_TIMEOUT); |
269 | 16 | zend_string *const_ERROR_TIMEOUT_name = zend_string_init_interned("ERROR_TIMEOUT", sizeof("ERROR_TIMEOUT") - 1, true); |
270 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_TIMEOUT_name, &const_ERROR_TIMEOUT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
271 | 16 | zend_string_release_ex(const_ERROR_TIMEOUT_name, true); |
272 | | |
273 | 16 | zval const_ERROR_INTERRUPTED_value; |
274 | 16 | ZVAL_LONG(&const_ERROR_INTERRUPTED_value, PHP_POLL_ERROR_CODE_INTERRUPTED); |
275 | 16 | zend_string *const_ERROR_INTERRUPTED_name = zend_string_init_interned("ERROR_INTERRUPTED", sizeof("ERROR_INTERRUPTED") - 1, true); |
276 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_INTERRUPTED_name, &const_ERROR_INTERRUPTED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
277 | 16 | zend_string_release_ex(const_ERROR_INTERRUPTED_name, true); |
278 | | |
279 | 16 | zval const_ERROR_PERMISSION_value; |
280 | 16 | ZVAL_LONG(&const_ERROR_PERMISSION_value, PHP_POLL_ERROR_CODE_PERMISSION); |
281 | 16 | zend_string *const_ERROR_PERMISSION_name = zend_string_init_interned("ERROR_PERMISSION", sizeof("ERROR_PERMISSION") - 1, true); |
282 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_PERMISSION_name, &const_ERROR_PERMISSION_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
283 | 16 | zend_string_release_ex(const_ERROR_PERMISSION_name, true); |
284 | | |
285 | 16 | zval const_ERROR_TOOBIG_value; |
286 | 16 | ZVAL_LONG(&const_ERROR_TOOBIG_value, PHP_POLL_ERROR_CODE_TOOBIG); |
287 | 16 | zend_string *const_ERROR_TOOBIG_name = zend_string_init_interned("ERROR_TOOBIG", sizeof("ERROR_TOOBIG") - 1, true); |
288 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_TOOBIG_name, &const_ERROR_TOOBIG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
289 | 16 | zend_string_release_ex(const_ERROR_TOOBIG_name, true); |
290 | | |
291 | 16 | zval const_ERROR_AGAIN_value; |
292 | 16 | ZVAL_LONG(&const_ERROR_AGAIN_value, PHP_POLL_ERROR_CODE_AGAIN); |
293 | 16 | zend_string *const_ERROR_AGAIN_name = zend_string_init_interned("ERROR_AGAIN", sizeof("ERROR_AGAIN") - 1, true); |
294 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_AGAIN_name, &const_ERROR_AGAIN_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
295 | 16 | zend_string_release_ex(const_ERROR_AGAIN_name, true); |
296 | | |
297 | 16 | zval const_ERROR_NOSUPPORT_value; |
298 | 16 | ZVAL_LONG(&const_ERROR_NOSUPPORT_value, PHP_POLL_ERROR_CODE_NOSUPPORT); |
299 | 16 | zend_string *const_ERROR_NOSUPPORT_name = zend_string_init_interned("ERROR_NOSUPPORT", sizeof("ERROR_NOSUPPORT") - 1, true); |
300 | 16 | zend_declare_typed_class_constant(class_entry, const_ERROR_NOSUPPORT_name, &const_ERROR_NOSUPPORT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); |
301 | 16 | zend_string_release_ex(const_ERROR_NOSUPPORT_name, true); |
302 | | |
303 | 16 | return class_entry; |
304 | 16 | } |
305 | | |
306 | | static zend_class_entry *register_class_Io_Poll_FailedContextInitializationException(zend_class_entry *class_entry_Io_Poll_FailedPollOperationException) |
307 | 16 | { |
308 | 16 | zend_class_entry ce, *class_entry; |
309 | | |
310 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "FailedContextInitializationException", NULL); |
311 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_FailedPollOperationException, 0); |
312 | | |
313 | 16 | return class_entry; |
314 | 16 | } |
315 | | |
316 | | static zend_class_entry *register_class_Io_Poll_FailedHandleAddException(zend_class_entry *class_entry_Io_Poll_FailedPollOperationException) |
317 | 16 | { |
318 | 16 | zend_class_entry ce, *class_entry; |
319 | | |
320 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "FailedHandleAddException", NULL); |
321 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_FailedPollOperationException, 0); |
322 | | |
323 | 16 | return class_entry; |
324 | 16 | } |
325 | | |
326 | | static zend_class_entry *register_class_Io_Poll_FailedWatcherModificationException(zend_class_entry *class_entry_Io_Poll_FailedPollOperationException) |
327 | 16 | { |
328 | 16 | zend_class_entry ce, *class_entry; |
329 | | |
330 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "FailedWatcherModificationException", NULL); |
331 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_FailedPollOperationException, 0); |
332 | | |
333 | 16 | return class_entry; |
334 | 16 | } |
335 | | |
336 | | static zend_class_entry *register_class_Io_Poll_FailedPollWaitException(zend_class_entry *class_entry_Io_Poll_FailedPollOperationException) |
337 | 16 | { |
338 | 16 | zend_class_entry ce, *class_entry; |
339 | | |
340 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "FailedPollWaitException", NULL); |
341 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_FailedPollOperationException, 0); |
342 | | |
343 | 16 | return class_entry; |
344 | 16 | } |
345 | | |
346 | | static zend_class_entry *register_class_Io_Poll_BackendUnavailableException(zend_class_entry *class_entry_Io_Poll_PollException) |
347 | 16 | { |
348 | 16 | zend_class_entry ce, *class_entry; |
349 | | |
350 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "BackendUnavailableException", NULL); |
351 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_PollException, 0); |
352 | | |
353 | 16 | return class_entry; |
354 | 16 | } |
355 | | |
356 | | static zend_class_entry *register_class_Io_Poll_InactiveWatcherException(zend_class_entry *class_entry_Io_Poll_PollException) |
357 | 16 | { |
358 | 16 | zend_class_entry ce, *class_entry; |
359 | | |
360 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "InactiveWatcherException", NULL); |
361 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_PollException, 0); |
362 | | |
363 | 16 | return class_entry; |
364 | 16 | } |
365 | | |
366 | | static zend_class_entry *register_class_Io_Poll_HandleAlreadyWatchedException(zend_class_entry *class_entry_Io_Poll_PollException) |
367 | 16 | { |
368 | 16 | zend_class_entry ce, *class_entry; |
369 | | |
370 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "HandleAlreadyWatchedException", NULL); |
371 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_PollException, 0); |
372 | | |
373 | 16 | return class_entry; |
374 | 16 | } |
375 | | |
376 | | static zend_class_entry *register_class_Io_Poll_InvalidHandleException(zend_class_entry *class_entry_Io_Poll_PollException) |
377 | 16 | { |
378 | 16 | zend_class_entry ce, *class_entry; |
379 | | |
380 | 16 | INIT_NS_CLASS_ENTRY(ce, "Io\\Poll", "InvalidHandleException", NULL); |
381 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Io_Poll_PollException, 0); |
382 | | |
383 | 16 | return class_entry; |
384 | 16 | } |
385 | | |
386 | | static zend_class_entry *register_class_StreamPollHandle(zend_class_entry *class_entry_Io_Poll_Handle) |
387 | 16 | { |
388 | 16 | zend_class_entry ce, *class_entry; |
389 | | |
390 | 16 | INIT_CLASS_ENTRY(ce, "StreamPollHandle", class_StreamPollHandle_methods); |
391 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE); |
392 | 16 | zend_class_implements(class_entry, 1, class_entry_Io_Poll_Handle); |
393 | | |
394 | 16 | return class_entry; |
395 | 16 | } |