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