1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 551324d130f9755c4c61cebb5084953fb6f539c4 */
3
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_close, 0, 0, IS_TRUE, 0)
5 ZEND_END_ARG_INFO()
6
7 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_getAttribute, 0, 1, IS_STRING, 1)
8 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
9 ZEND_END_ARG_INFO()
10
11 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_getAttributeNo, 0, 1, IS_STRING, 1)
12 ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
13 ZEND_END_ARG_INFO()
14
15 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_getAttributeNs, 0, 2, IS_STRING, 1)
16 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
17 ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
18 ZEND_END_ARG_INFO()
19
20 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_getParserProperty, 0, 1, _IS_BOOL, 0)
21 ZEND_ARG_TYPE_INFO(0, property, IS_LONG, 0)
22 ZEND_END_ARG_INFO()
23
24 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_isValid, 0, 0, _IS_BOOL, 0)
25 ZEND_END_ARG_INFO()
26
27 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_lookupNamespace, 0, 1, IS_STRING, 1)
28 ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 0)
29 ZEND_END_ARG_INFO()
30
31 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_moveToAttribute, 0, 1, _IS_BOOL, 0)
32 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
33 ZEND_END_ARG_INFO()
34
35 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_moveToAttributeNo, 0, 1, _IS_BOOL, 0)
36 ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
37 ZEND_END_ARG_INFO()
38
39 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_moveToAttributeNs, 0, 2, _IS_BOOL, 0)
40 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
41 ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
42 ZEND_END_ARG_INFO()
43
44 #define arginfo_class_XMLReader_moveToElement arginfo_class_XMLReader_isValid
45
46 #define arginfo_class_XMLReader_moveToFirstAttribute arginfo_class_XMLReader_isValid
47
48 #define arginfo_class_XMLReader_moveToNextAttribute arginfo_class_XMLReader_isValid
49
50 #define arginfo_class_XMLReader_read arginfo_class_XMLReader_isValid
51
52 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_next, 0, 0, _IS_BOOL, 0)
53 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, name, IS_STRING, 1, "null")
54 ZEND_END_ARG_INFO()
55
56 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_open, 0, 0, 1)
57 ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
58 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
59 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
60 ZEND_END_ARG_INFO()
61
62 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_fromUri, 0, 1, IS_STATIC, 0)
63 ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
64 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
65 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
66 ZEND_END_ARG_INFO()
67
68 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_fromStream, 0, 1, IS_STATIC, 0)
69 ZEND_ARG_INFO(0, stream)
70 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
71 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
72 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, documentUri, IS_STRING, 1, "null")
73 ZEND_END_ARG_INFO()
74
75 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_readInnerXml, 0, 0, IS_STRING, 0)
76 ZEND_END_ARG_INFO()
77
78 #define arginfo_class_XMLReader_readOuterXml arginfo_class_XMLReader_readInnerXml
79
80 #define arginfo_class_XMLReader_readString arginfo_class_XMLReader_readInnerXml
81
82 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_setSchema, 0, 1, _IS_BOOL, 0)
83 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 1)
84 ZEND_END_ARG_INFO()
85
86 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_setParserProperty, 0, 2, _IS_BOOL, 0)
87 ZEND_ARG_TYPE_INFO(0, property, IS_LONG, 0)
88 ZEND_ARG_TYPE_INFO(0, value, _IS_BOOL, 0)
89 ZEND_END_ARG_INFO()
90
91 #define arginfo_class_XMLReader_setRelaxNGSchema arginfo_class_XMLReader_setSchema
92
93 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_setRelaxNGSchemaSource, 0, 1, _IS_BOOL, 0)
94 ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 1)
95 ZEND_END_ARG_INFO()
96
97 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_XML, 0, 0, 1)
98 ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
99 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
100 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
101 ZEND_END_ARG_INFO()
102
103 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_fromString, 0, 1, IS_STATIC, 0)
104 ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
105 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
106 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
107 ZEND_END_ARG_INFO()
108
109 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_XMLReader_expand, 0, 0, DOMNode, MAY_BE_FALSE)
110 ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, baseNode, DOMNode, 1, "null")
111 ZEND_END_ARG_INFO()
112
113 ZEND_METHOD(XMLReader, close);
114 ZEND_METHOD(XMLReader, getAttribute);
115 ZEND_METHOD(XMLReader, getAttributeNo);
116 ZEND_METHOD(XMLReader, getAttributeNs);
117 ZEND_METHOD(XMLReader, getParserProperty);
118 ZEND_METHOD(XMLReader, isValid);
119 ZEND_METHOD(XMLReader, lookupNamespace);
120 ZEND_METHOD(XMLReader, moveToAttribute);
121 ZEND_METHOD(XMLReader, moveToAttributeNo);
122 ZEND_METHOD(XMLReader, moveToAttributeNs);
123 ZEND_METHOD(XMLReader, moveToElement);
124 ZEND_METHOD(XMLReader, moveToFirstAttribute);
125 ZEND_METHOD(XMLReader, moveToNextAttribute);
126 ZEND_METHOD(XMLReader, read);
127 ZEND_METHOD(XMLReader, next);
128 ZEND_METHOD(XMLReader, open);
129 ZEND_METHOD(XMLReader, fromUri);
130 ZEND_METHOD(XMLReader, fromStream);
131 ZEND_METHOD(XMLReader, readInnerXml);
132 ZEND_METHOD(XMLReader, readOuterXml);
133 ZEND_METHOD(XMLReader, readString);
134 ZEND_METHOD(XMLReader, setSchema);
135 ZEND_METHOD(XMLReader, setParserProperty);
136 ZEND_METHOD(XMLReader, setRelaxNGSchema);
137 ZEND_METHOD(XMLReader, setRelaxNGSchemaSource);
138 ZEND_METHOD(XMLReader, XML);
139 ZEND_METHOD(XMLReader, fromString);
140 ZEND_METHOD(XMLReader, expand);
141
142 static const zend_function_entry class_XMLReader_methods[] = {
143 ZEND_ME(XMLReader, close, arginfo_class_XMLReader_close, ZEND_ACC_PUBLIC)
144 ZEND_ME(XMLReader, getAttribute, arginfo_class_XMLReader_getAttribute, ZEND_ACC_PUBLIC)
145 ZEND_ME(XMLReader, getAttributeNo, arginfo_class_XMLReader_getAttributeNo, ZEND_ACC_PUBLIC)
146 ZEND_ME(XMLReader, getAttributeNs, arginfo_class_XMLReader_getAttributeNs, ZEND_ACC_PUBLIC)
147 ZEND_ME(XMLReader, getParserProperty, arginfo_class_XMLReader_getParserProperty, ZEND_ACC_PUBLIC)
148 ZEND_ME(XMLReader, isValid, arginfo_class_XMLReader_isValid, ZEND_ACC_PUBLIC)
149 ZEND_ME(XMLReader, lookupNamespace, arginfo_class_XMLReader_lookupNamespace, ZEND_ACC_PUBLIC)
150 ZEND_ME(XMLReader, moveToAttribute, arginfo_class_XMLReader_moveToAttribute, ZEND_ACC_PUBLIC)
151 ZEND_ME(XMLReader, moveToAttributeNo, arginfo_class_XMLReader_moveToAttributeNo, ZEND_ACC_PUBLIC)
152 ZEND_ME(XMLReader, moveToAttributeNs, arginfo_class_XMLReader_moveToAttributeNs, ZEND_ACC_PUBLIC)
153 ZEND_ME(XMLReader, moveToElement, arginfo_class_XMLReader_moveToElement, ZEND_ACC_PUBLIC)
154 ZEND_ME(XMLReader, moveToFirstAttribute, arginfo_class_XMLReader_moveToFirstAttribute, ZEND_ACC_PUBLIC)
155 ZEND_ME(XMLReader, moveToNextAttribute, arginfo_class_XMLReader_moveToNextAttribute, ZEND_ACC_PUBLIC)
156 ZEND_ME(XMLReader, read, arginfo_class_XMLReader_read, ZEND_ACC_PUBLIC)
157 ZEND_ME(XMLReader, next, arginfo_class_XMLReader_next, ZEND_ACC_PUBLIC)
158 ZEND_ME(XMLReader, open, arginfo_class_XMLReader_open, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
159 ZEND_ME(XMLReader, fromUri, arginfo_class_XMLReader_fromUri, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
160 ZEND_ME(XMLReader, fromStream, arginfo_class_XMLReader_fromStream, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
161 ZEND_ME(XMLReader, readInnerXml, arginfo_class_XMLReader_readInnerXml, ZEND_ACC_PUBLIC)
162 ZEND_ME(XMLReader, readOuterXml, arginfo_class_XMLReader_readOuterXml, ZEND_ACC_PUBLIC)
163 ZEND_ME(XMLReader, readString, arginfo_class_XMLReader_readString, ZEND_ACC_PUBLIC)
164 ZEND_ME(XMLReader, setSchema, arginfo_class_XMLReader_setSchema, ZEND_ACC_PUBLIC)
165 ZEND_ME(XMLReader, setParserProperty, arginfo_class_XMLReader_setParserProperty, ZEND_ACC_PUBLIC)
166 ZEND_ME(XMLReader, setRelaxNGSchema, arginfo_class_XMLReader_setRelaxNGSchema, ZEND_ACC_PUBLIC)
167 ZEND_ME(XMLReader, setRelaxNGSchemaSource, arginfo_class_XMLReader_setRelaxNGSchemaSource, ZEND_ACC_PUBLIC)
168 ZEND_ME(XMLReader, XML, arginfo_class_XMLReader_XML, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
169 ZEND_ME(XMLReader, fromString, arginfo_class_XMLReader_fromString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
170 ZEND_ME(XMLReader, expand, arginfo_class_XMLReader_expand, ZEND_ACC_PUBLIC)
171 ZEND_FE_END
172 };
173
register_class_XMLReader(void)174 static zend_class_entry *register_class_XMLReader(void)
175 {
176 zend_class_entry ce, *class_entry;
177
178 INIT_CLASS_ENTRY(ce, "XMLReader", class_XMLReader_methods);
179 class_entry = zend_register_internal_class_ex(&ce, NULL);
180
181 zval const_NONE_value;
182 ZVAL_LONG(&const_NONE_value, XML_READER_TYPE_NONE);
183 zend_string *const_NONE_name = zend_string_init_interned("NONE", sizeof("NONE") - 1, 1);
184 zend_declare_typed_class_constant(class_entry, const_NONE_name, &const_NONE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
185 zend_string_release(const_NONE_name);
186
187 zval const_ELEMENT_value;
188 ZVAL_LONG(&const_ELEMENT_value, XML_READER_TYPE_ELEMENT);
189 zend_string *const_ELEMENT_name = zend_string_init_interned("ELEMENT", sizeof("ELEMENT") - 1, 1);
190 zend_declare_typed_class_constant(class_entry, const_ELEMENT_name, &const_ELEMENT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
191 zend_string_release(const_ELEMENT_name);
192
193 zval const_ATTRIBUTE_value;
194 ZVAL_LONG(&const_ATTRIBUTE_value, XML_READER_TYPE_ATTRIBUTE);
195 zend_string *const_ATTRIBUTE_name = zend_string_init_interned("ATTRIBUTE", sizeof("ATTRIBUTE") - 1, 1);
196 zend_declare_typed_class_constant(class_entry, const_ATTRIBUTE_name, &const_ATTRIBUTE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
197 zend_string_release(const_ATTRIBUTE_name);
198
199 zval const_TEXT_value;
200 ZVAL_LONG(&const_TEXT_value, XML_READER_TYPE_TEXT);
201 zend_string *const_TEXT_name = zend_string_init_interned("TEXT", sizeof("TEXT") - 1, 1);
202 zend_declare_typed_class_constant(class_entry, const_TEXT_name, &const_TEXT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
203 zend_string_release(const_TEXT_name);
204
205 zval const_CDATA_value;
206 ZVAL_LONG(&const_CDATA_value, XML_READER_TYPE_CDATA);
207 zend_string *const_CDATA_name = zend_string_init_interned("CDATA", sizeof("CDATA") - 1, 1);
208 zend_declare_typed_class_constant(class_entry, const_CDATA_name, &const_CDATA_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
209 zend_string_release(const_CDATA_name);
210
211 zval const_ENTITY_REF_value;
212 ZVAL_LONG(&const_ENTITY_REF_value, XML_READER_TYPE_ENTITY_REFERENCE);
213 zend_string *const_ENTITY_REF_name = zend_string_init_interned("ENTITY_REF", sizeof("ENTITY_REF") - 1, 1);
214 zend_declare_typed_class_constant(class_entry, const_ENTITY_REF_name, &const_ENTITY_REF_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
215 zend_string_release(const_ENTITY_REF_name);
216
217 zval const_ENTITY_value;
218 ZVAL_LONG(&const_ENTITY_value, XML_READER_TYPE_ENTITY);
219 zend_string *const_ENTITY_name = zend_string_init_interned("ENTITY", sizeof("ENTITY") - 1, 1);
220 zend_declare_typed_class_constant(class_entry, const_ENTITY_name, &const_ENTITY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
221 zend_string_release(const_ENTITY_name);
222
223 zval const_PI_value;
224 ZVAL_LONG(&const_PI_value, XML_READER_TYPE_PROCESSING_INSTRUCTION);
225 zend_string *const_PI_name = zend_string_init_interned("PI", sizeof("PI") - 1, 1);
226 zend_declare_typed_class_constant(class_entry, const_PI_name, &const_PI_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
227 zend_string_release(const_PI_name);
228
229 zval const_COMMENT_value;
230 ZVAL_LONG(&const_COMMENT_value, XML_READER_TYPE_COMMENT);
231 zend_string *const_COMMENT_name = zend_string_init_interned("COMMENT", sizeof("COMMENT") - 1, 1);
232 zend_declare_typed_class_constant(class_entry, const_COMMENT_name, &const_COMMENT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
233 zend_string_release(const_COMMENT_name);
234
235 zval const_DOC_value;
236 ZVAL_LONG(&const_DOC_value, XML_READER_TYPE_DOCUMENT);
237 zend_string *const_DOC_name = zend_string_init_interned("DOC", sizeof("DOC") - 1, 1);
238 zend_declare_typed_class_constant(class_entry, const_DOC_name, &const_DOC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
239 zend_string_release(const_DOC_name);
240
241 zval const_DOC_TYPE_value;
242 ZVAL_LONG(&const_DOC_TYPE_value, XML_READER_TYPE_DOCUMENT_TYPE);
243 zend_string *const_DOC_TYPE_name = zend_string_init_interned("DOC_TYPE", sizeof("DOC_TYPE") - 1, 1);
244 zend_declare_typed_class_constant(class_entry, const_DOC_TYPE_name, &const_DOC_TYPE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
245 zend_string_release(const_DOC_TYPE_name);
246
247 zval const_DOC_FRAGMENT_value;
248 ZVAL_LONG(&const_DOC_FRAGMENT_value, XML_READER_TYPE_DOCUMENT_FRAGMENT);
249 zend_string *const_DOC_FRAGMENT_name = zend_string_init_interned("DOC_FRAGMENT", sizeof("DOC_FRAGMENT") - 1, 1);
250 zend_declare_typed_class_constant(class_entry, const_DOC_FRAGMENT_name, &const_DOC_FRAGMENT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
251 zend_string_release(const_DOC_FRAGMENT_name);
252
253 zval const_NOTATION_value;
254 ZVAL_LONG(&const_NOTATION_value, XML_READER_TYPE_NOTATION);
255 zend_string *const_NOTATION_name = zend_string_init_interned("NOTATION", sizeof("NOTATION") - 1, 1);
256 zend_declare_typed_class_constant(class_entry, const_NOTATION_name, &const_NOTATION_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
257 zend_string_release(const_NOTATION_name);
258
259 zval const_WHITESPACE_value;
260 ZVAL_LONG(&const_WHITESPACE_value, XML_READER_TYPE_WHITESPACE);
261 zend_string *const_WHITESPACE_name = zend_string_init_interned("WHITESPACE", sizeof("WHITESPACE") - 1, 1);
262 zend_declare_typed_class_constant(class_entry, const_WHITESPACE_name, &const_WHITESPACE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
263 zend_string_release(const_WHITESPACE_name);
264
265 zval const_SIGNIFICANT_WHITESPACE_value;
266 ZVAL_LONG(&const_SIGNIFICANT_WHITESPACE_value, XML_READER_TYPE_SIGNIFICANT_WHITESPACE);
267 zend_string *const_SIGNIFICANT_WHITESPACE_name = zend_string_init_interned("SIGNIFICANT_WHITESPACE", sizeof("SIGNIFICANT_WHITESPACE") - 1, 1);
268 zend_declare_typed_class_constant(class_entry, const_SIGNIFICANT_WHITESPACE_name, &const_SIGNIFICANT_WHITESPACE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
269 zend_string_release(const_SIGNIFICANT_WHITESPACE_name);
270
271 zval const_END_ELEMENT_value;
272 ZVAL_LONG(&const_END_ELEMENT_value, XML_READER_TYPE_END_ELEMENT);
273 zend_string *const_END_ELEMENT_name = zend_string_init_interned("END_ELEMENT", sizeof("END_ELEMENT") - 1, 1);
274 zend_declare_typed_class_constant(class_entry, const_END_ELEMENT_name, &const_END_ELEMENT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
275 zend_string_release(const_END_ELEMENT_name);
276
277 zval const_END_ENTITY_value;
278 ZVAL_LONG(&const_END_ENTITY_value, XML_READER_TYPE_END_ENTITY);
279 zend_string *const_END_ENTITY_name = zend_string_init_interned("END_ENTITY", sizeof("END_ENTITY") - 1, 1);
280 zend_declare_typed_class_constant(class_entry, const_END_ENTITY_name, &const_END_ENTITY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
281 zend_string_release(const_END_ENTITY_name);
282
283 zval const_XML_DECLARATION_value;
284 ZVAL_LONG(&const_XML_DECLARATION_value, XML_READER_TYPE_XML_DECLARATION);
285 zend_string *const_XML_DECLARATION_name = zend_string_init_interned("XML_DECLARATION", sizeof("XML_DECLARATION") - 1, 1);
286 zend_declare_typed_class_constant(class_entry, const_XML_DECLARATION_name, &const_XML_DECLARATION_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
287 zend_string_release(const_XML_DECLARATION_name);
288
289 zval const_LOADDTD_value;
290 ZVAL_LONG(&const_LOADDTD_value, XML_PARSER_LOADDTD);
291 zend_string *const_LOADDTD_name = zend_string_init_interned("LOADDTD", sizeof("LOADDTD") - 1, 1);
292 zend_declare_typed_class_constant(class_entry, const_LOADDTD_name, &const_LOADDTD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
293 zend_string_release(const_LOADDTD_name);
294
295 zval const_DEFAULTATTRS_value;
296 ZVAL_LONG(&const_DEFAULTATTRS_value, XML_PARSER_DEFAULTATTRS);
297 zend_string *const_DEFAULTATTRS_name = zend_string_init_interned("DEFAULTATTRS", sizeof("DEFAULTATTRS") - 1, 1);
298 zend_declare_typed_class_constant(class_entry, const_DEFAULTATTRS_name, &const_DEFAULTATTRS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
299 zend_string_release(const_DEFAULTATTRS_name);
300
301 zval const_VALIDATE_value;
302 ZVAL_LONG(&const_VALIDATE_value, XML_PARSER_VALIDATE);
303 zend_string *const_VALIDATE_name = zend_string_init_interned("VALIDATE", sizeof("VALIDATE") - 1, 1);
304 zend_declare_typed_class_constant(class_entry, const_VALIDATE_name, &const_VALIDATE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
305 zend_string_release(const_VALIDATE_name);
306
307 zval const_SUBST_ENTITIES_value;
308 ZVAL_LONG(&const_SUBST_ENTITIES_value, XML_PARSER_SUBST_ENTITIES);
309 zend_string *const_SUBST_ENTITIES_name = zend_string_init_interned("SUBST_ENTITIES", sizeof("SUBST_ENTITIES") - 1, 1);
310 zend_declare_typed_class_constant(class_entry, const_SUBST_ENTITIES_name, &const_SUBST_ENTITIES_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
311 zend_string_release(const_SUBST_ENTITIES_name);
312
313 zval property_attributeCount_default_value;
314 ZVAL_UNDEF(&property_attributeCount_default_value);
315 zend_string *property_attributeCount_name = zend_string_init("attributeCount", sizeof("attributeCount") - 1, 1);
316 zend_declare_typed_property(class_entry, property_attributeCount_name, &property_attributeCount_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
317 zend_string_release(property_attributeCount_name);
318
319 zval property_baseURI_default_value;
320 ZVAL_UNDEF(&property_baseURI_default_value);
321 zend_string *property_baseURI_name = zend_string_init("baseURI", sizeof("baseURI") - 1, 1);
322 zend_declare_typed_property(class_entry, property_baseURI_name, &property_baseURI_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
323 zend_string_release(property_baseURI_name);
324
325 zval property_depth_default_value;
326 ZVAL_UNDEF(&property_depth_default_value);
327 zend_string *property_depth_name = zend_string_init("depth", sizeof("depth") - 1, 1);
328 zend_declare_typed_property(class_entry, property_depth_name, &property_depth_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
329 zend_string_release(property_depth_name);
330
331 zval property_hasAttributes_default_value;
332 ZVAL_UNDEF(&property_hasAttributes_default_value);
333 zend_string *property_hasAttributes_name = zend_string_init("hasAttributes", sizeof("hasAttributes") - 1, 1);
334 zend_declare_typed_property(class_entry, property_hasAttributes_name, &property_hasAttributes_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
335 zend_string_release(property_hasAttributes_name);
336
337 zval property_hasValue_default_value;
338 ZVAL_UNDEF(&property_hasValue_default_value);
339 zend_string *property_hasValue_name = zend_string_init("hasValue", sizeof("hasValue") - 1, 1);
340 zend_declare_typed_property(class_entry, property_hasValue_name, &property_hasValue_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
341 zend_string_release(property_hasValue_name);
342
343 zval property_isDefault_default_value;
344 ZVAL_UNDEF(&property_isDefault_default_value);
345 zend_string *property_isDefault_name = zend_string_init("isDefault", sizeof("isDefault") - 1, 1);
346 zend_declare_typed_property(class_entry, property_isDefault_name, &property_isDefault_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
347 zend_string_release(property_isDefault_name);
348
349 zval property_isEmptyElement_default_value;
350 ZVAL_UNDEF(&property_isEmptyElement_default_value);
351 zend_string *property_isEmptyElement_name = zend_string_init("isEmptyElement", sizeof("isEmptyElement") - 1, 1);
352 zend_declare_typed_property(class_entry, property_isEmptyElement_name, &property_isEmptyElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
353 zend_string_release(property_isEmptyElement_name);
354
355 zval property_localName_default_value;
356 ZVAL_UNDEF(&property_localName_default_value);
357 zend_string *property_localName_name = zend_string_init("localName", sizeof("localName") - 1, 1);
358 zend_declare_typed_property(class_entry, property_localName_name, &property_localName_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
359 zend_string_release(property_localName_name);
360
361 zval property_name_default_value;
362 ZVAL_UNDEF(&property_name_default_value);
363 zend_string *property_name_name = zend_string_init("name", sizeof("name") - 1, 1);
364 zend_declare_typed_property(class_entry, property_name_name, &property_name_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
365 zend_string_release(property_name_name);
366
367 zval property_namespaceURI_default_value;
368 ZVAL_UNDEF(&property_namespaceURI_default_value);
369 zend_string *property_namespaceURI_name = zend_string_init("namespaceURI", sizeof("namespaceURI") - 1, 1);
370 zend_declare_typed_property(class_entry, property_namespaceURI_name, &property_namespaceURI_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
371 zend_string_release(property_namespaceURI_name);
372
373 zval property_nodeType_default_value;
374 ZVAL_UNDEF(&property_nodeType_default_value);
375 zend_string *property_nodeType_name = zend_string_init("nodeType", sizeof("nodeType") - 1, 1);
376 zend_declare_typed_property(class_entry, property_nodeType_name, &property_nodeType_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
377 zend_string_release(property_nodeType_name);
378
379 zval property_prefix_default_value;
380 ZVAL_UNDEF(&property_prefix_default_value);
381 zend_string *property_prefix_name = zend_string_init("prefix", sizeof("prefix") - 1, 1);
382 zend_declare_typed_property(class_entry, property_prefix_name, &property_prefix_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
383 zend_string_release(property_prefix_name);
384
385 zval property_value_default_value;
386 ZVAL_UNDEF(&property_value_default_value);
387 zend_string *property_value_name = zend_string_init("value", sizeof("value") - 1, 1);
388 zend_declare_typed_property(class_entry, property_value_name, &property_value_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
389 zend_string_release(property_value_name);
390
391 zval property_xmlLang_default_value;
392 ZVAL_UNDEF(&property_xmlLang_default_value);
393 zend_string *property_xmlLang_name = zend_string_init("xmlLang", sizeof("xmlLang") - 1, 1);
394 zend_declare_typed_property(class_entry, property_xmlLang_name, &property_xmlLang_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
395 zend_string_release(property_xmlLang_name);
396
397 return class_entry;
398 }
399