1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 1601e86ad66e337a6af7d09ec7ba703926bdb8c7 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_close, 0, 0, 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_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_readInnerXml, 0, 0, IS_STRING, 0)
63 ZEND_END_ARG_INFO()
64 
65 #define arginfo_class_XMLReader_readOuterXml arginfo_class_XMLReader_readInnerXml
66 
67 #define arginfo_class_XMLReader_readString arginfo_class_XMLReader_readInnerXml
68 
69 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_setSchema, 0, 1, _IS_BOOL, 0)
70 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 1)
71 ZEND_END_ARG_INFO()
72 
73 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_setParserProperty, 0, 2, _IS_BOOL, 0)
74 	ZEND_ARG_TYPE_INFO(0, property, IS_LONG, 0)
75 	ZEND_ARG_TYPE_INFO(0, value, _IS_BOOL, 0)
76 ZEND_END_ARG_INFO()
77 
78 #define arginfo_class_XMLReader_setRelaxNGSchema arginfo_class_XMLReader_setSchema
79 
80 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XMLReader_setRelaxNGSchemaSource, 0, 1, _IS_BOOL, 0)
81 	ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 1)
82 ZEND_END_ARG_INFO()
83 
84 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_XML, 0, 0, 1)
85 	ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
86 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
87 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
88 ZEND_END_ARG_INFO()
89 
90 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_XMLReader_expand, 0, 0, DOMNode, MAY_BE_FALSE)
91 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, baseNode, DOMNode, 1, "null")
92 ZEND_END_ARG_INFO()
93 
94 
95 ZEND_METHOD(XMLReader, close);
96 ZEND_METHOD(XMLReader, getAttribute);
97 ZEND_METHOD(XMLReader, getAttributeNo);
98 ZEND_METHOD(XMLReader, getAttributeNs);
99 ZEND_METHOD(XMLReader, getParserProperty);
100 ZEND_METHOD(XMLReader, isValid);
101 ZEND_METHOD(XMLReader, lookupNamespace);
102 ZEND_METHOD(XMLReader, moveToAttribute);
103 ZEND_METHOD(XMLReader, moveToAttributeNo);
104 ZEND_METHOD(XMLReader, moveToAttributeNs);
105 ZEND_METHOD(XMLReader, moveToElement);
106 ZEND_METHOD(XMLReader, moveToFirstAttribute);
107 ZEND_METHOD(XMLReader, moveToNextAttribute);
108 ZEND_METHOD(XMLReader, read);
109 ZEND_METHOD(XMLReader, next);
110 ZEND_METHOD(XMLReader, open);
111 ZEND_METHOD(XMLReader, readInnerXml);
112 ZEND_METHOD(XMLReader, readOuterXml);
113 ZEND_METHOD(XMLReader, readString);
114 ZEND_METHOD(XMLReader, setSchema);
115 ZEND_METHOD(XMLReader, setParserProperty);
116 ZEND_METHOD(XMLReader, setRelaxNGSchema);
117 ZEND_METHOD(XMLReader, setRelaxNGSchemaSource);
118 ZEND_METHOD(XMLReader, XML);
119 ZEND_METHOD(XMLReader, expand);
120 
121 
122 static const zend_function_entry class_XMLReader_methods[] = {
123 	ZEND_ME(XMLReader, close, arginfo_class_XMLReader_close, ZEND_ACC_PUBLIC)
124 	ZEND_ME(XMLReader, getAttribute, arginfo_class_XMLReader_getAttribute, ZEND_ACC_PUBLIC)
125 	ZEND_ME(XMLReader, getAttributeNo, arginfo_class_XMLReader_getAttributeNo, ZEND_ACC_PUBLIC)
126 	ZEND_ME(XMLReader, getAttributeNs, arginfo_class_XMLReader_getAttributeNs, ZEND_ACC_PUBLIC)
127 	ZEND_ME(XMLReader, getParserProperty, arginfo_class_XMLReader_getParserProperty, ZEND_ACC_PUBLIC)
128 	ZEND_ME(XMLReader, isValid, arginfo_class_XMLReader_isValid, ZEND_ACC_PUBLIC)
129 	ZEND_ME(XMLReader, lookupNamespace, arginfo_class_XMLReader_lookupNamespace, ZEND_ACC_PUBLIC)
130 	ZEND_ME(XMLReader, moveToAttribute, arginfo_class_XMLReader_moveToAttribute, ZEND_ACC_PUBLIC)
131 	ZEND_ME(XMLReader, moveToAttributeNo, arginfo_class_XMLReader_moveToAttributeNo, ZEND_ACC_PUBLIC)
132 	ZEND_ME(XMLReader, moveToAttributeNs, arginfo_class_XMLReader_moveToAttributeNs, ZEND_ACC_PUBLIC)
133 	ZEND_ME(XMLReader, moveToElement, arginfo_class_XMLReader_moveToElement, ZEND_ACC_PUBLIC)
134 	ZEND_ME(XMLReader, moveToFirstAttribute, arginfo_class_XMLReader_moveToFirstAttribute, ZEND_ACC_PUBLIC)
135 	ZEND_ME(XMLReader, moveToNextAttribute, arginfo_class_XMLReader_moveToNextAttribute, ZEND_ACC_PUBLIC)
136 	ZEND_ME(XMLReader, read, arginfo_class_XMLReader_read, ZEND_ACC_PUBLIC)
137 	ZEND_ME(XMLReader, next, arginfo_class_XMLReader_next, ZEND_ACC_PUBLIC)
138 	ZEND_ME(XMLReader, open, arginfo_class_XMLReader_open, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
139 	ZEND_ME(XMLReader, readInnerXml, arginfo_class_XMLReader_readInnerXml, ZEND_ACC_PUBLIC)
140 	ZEND_ME(XMLReader, readOuterXml, arginfo_class_XMLReader_readOuterXml, ZEND_ACC_PUBLIC)
141 	ZEND_ME(XMLReader, readString, arginfo_class_XMLReader_readString, ZEND_ACC_PUBLIC)
142 	ZEND_ME(XMLReader, setSchema, arginfo_class_XMLReader_setSchema, ZEND_ACC_PUBLIC)
143 	ZEND_ME(XMLReader, setParserProperty, arginfo_class_XMLReader_setParserProperty, ZEND_ACC_PUBLIC)
144 	ZEND_ME(XMLReader, setRelaxNGSchema, arginfo_class_XMLReader_setRelaxNGSchema, ZEND_ACC_PUBLIC)
145 	ZEND_ME(XMLReader, setRelaxNGSchemaSource, arginfo_class_XMLReader_setRelaxNGSchemaSource, ZEND_ACC_PUBLIC)
146 	ZEND_ME(XMLReader, XML, arginfo_class_XMLReader_XML, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
147 	ZEND_ME(XMLReader, expand, arginfo_class_XMLReader_expand, ZEND_ACC_PUBLIC)
148 	ZEND_FE_END
149 };
150 
register_class_XMLReader(void)151 static zend_class_entry *register_class_XMLReader(void)
152 {
153 	zend_class_entry ce, *class_entry;
154 
155 	INIT_CLASS_ENTRY(ce, "XMLReader", class_XMLReader_methods);
156 	class_entry = zend_register_internal_class_ex(&ce, NULL);
157 
158 	zval property_attributeCount_default_value;
159 	ZVAL_UNDEF(&property_attributeCount_default_value);
160 	zend_string *property_attributeCount_name = zend_string_init("attributeCount", sizeof("attributeCount") - 1, 1);
161 	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));
162 	zend_string_release(property_attributeCount_name);
163 
164 	zval property_baseURI_default_value;
165 	ZVAL_UNDEF(&property_baseURI_default_value);
166 	zend_string *property_baseURI_name = zend_string_init("baseURI", sizeof("baseURI") - 1, 1);
167 	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));
168 	zend_string_release(property_baseURI_name);
169 
170 	zval property_depth_default_value;
171 	ZVAL_UNDEF(&property_depth_default_value);
172 	zend_string *property_depth_name = zend_string_init("depth", sizeof("depth") - 1, 1);
173 	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));
174 	zend_string_release(property_depth_name);
175 
176 	zval property_hasAttributes_default_value;
177 	ZVAL_UNDEF(&property_hasAttributes_default_value);
178 	zend_string *property_hasAttributes_name = zend_string_init("hasAttributes", sizeof("hasAttributes") - 1, 1);
179 	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));
180 	zend_string_release(property_hasAttributes_name);
181 
182 	zval property_hasValue_default_value;
183 	ZVAL_UNDEF(&property_hasValue_default_value);
184 	zend_string *property_hasValue_name = zend_string_init("hasValue", sizeof("hasValue") - 1, 1);
185 	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));
186 	zend_string_release(property_hasValue_name);
187 
188 	zval property_isDefault_default_value;
189 	ZVAL_UNDEF(&property_isDefault_default_value);
190 	zend_string *property_isDefault_name = zend_string_init("isDefault", sizeof("isDefault") - 1, 1);
191 	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));
192 	zend_string_release(property_isDefault_name);
193 
194 	zval property_isEmptyElement_default_value;
195 	ZVAL_UNDEF(&property_isEmptyElement_default_value);
196 	zend_string *property_isEmptyElement_name = zend_string_init("isEmptyElement", sizeof("isEmptyElement") - 1, 1);
197 	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));
198 	zend_string_release(property_isEmptyElement_name);
199 
200 	zval property_localName_default_value;
201 	ZVAL_UNDEF(&property_localName_default_value);
202 	zend_string *property_localName_name = zend_string_init("localName", sizeof("localName") - 1, 1);
203 	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));
204 	zend_string_release(property_localName_name);
205 
206 	zval property_name_default_value;
207 	ZVAL_UNDEF(&property_name_default_value);
208 	zend_string *property_name_name = zend_string_init("name", sizeof("name") - 1, 1);
209 	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));
210 	zend_string_release(property_name_name);
211 
212 	zval property_namespaceURI_default_value;
213 	ZVAL_UNDEF(&property_namespaceURI_default_value);
214 	zend_string *property_namespaceURI_name = zend_string_init("namespaceURI", sizeof("namespaceURI") - 1, 1);
215 	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));
216 	zend_string_release(property_namespaceURI_name);
217 
218 	zval property_nodeType_default_value;
219 	ZVAL_UNDEF(&property_nodeType_default_value);
220 	zend_string *property_nodeType_name = zend_string_init("nodeType", sizeof("nodeType") - 1, 1);
221 	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));
222 	zend_string_release(property_nodeType_name);
223 
224 	zval property_prefix_default_value;
225 	ZVAL_UNDEF(&property_prefix_default_value);
226 	zend_string *property_prefix_name = zend_string_init("prefix", sizeof("prefix") - 1, 1);
227 	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));
228 	zend_string_release(property_prefix_name);
229 
230 	zval property_value_default_value;
231 	ZVAL_UNDEF(&property_value_default_value);
232 	zend_string *property_value_name = zend_string_init("value", sizeof("value") - 1, 1);
233 	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));
234 	zend_string_release(property_value_name);
235 
236 	zval property_xmlLang_default_value;
237 	ZVAL_UNDEF(&property_xmlLang_default_value);
238 	zend_string *property_xmlLang_name = zend_string_init("xmlLang", sizeof("xmlLang") - 1, 1);
239 	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));
240 	zend_string_release(property_xmlLang_name);
241 
242 	return class_entry;
243 }
244