xref: /PHP-8.2/ext/dom/php_dom_arginfo.h (revision 41af9335)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 6d1c16a61f23de241f72f3559a9987d2f4a9c6fd */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_dom_import_simplexml, 0, 1, DOMAttr|DOMElement, 0)
5 	ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMCdataSection___construct, 0, 0, 1)
9 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMComment___construct, 0, 0, 0)
13 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data, IS_STRING, 0, "\"\"")
14 ZEND_END_ARG_INFO()
15 
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOMParentNode_append, 0, 0, IS_VOID, 0)
17 	ZEND_ARG_VARIADIC_INFO(0, nodes)
18 ZEND_END_ARG_INFO()
19 
20 #define arginfo_class_DOMParentNode_prepend arginfo_class_DOMParentNode_append
21 
22 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOMChildNode_remove, 0, 0, IS_VOID, 0)
23 ZEND_END_ARG_INFO()
24 
25 #define arginfo_class_DOMChildNode_before arginfo_class_DOMParentNode_append
26 
27 #define arginfo_class_DOMChildNode_after arginfo_class_DOMParentNode_append
28 
29 #define arginfo_class_DOMChildNode_replaceWith arginfo_class_DOMParentNode_append
30 
31 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode___sleep, 0, 0, IS_ARRAY, 0)
32 ZEND_END_ARG_INFO()
33 
34 #define arginfo_class_DOMNode___wakeup arginfo_class_DOMChildNode_remove
35 
36 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_appendChild, 0, 0, 1)
37 	ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0)
38 ZEND_END_ARG_INFO()
39 
40 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMNode_C14N, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
41 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, exclusive, _IS_BOOL, 0, "false")
42 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, withComments, _IS_BOOL, 0, "false")
43 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, xpath, IS_ARRAY, 1, "null")
44 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nsPrefixes, IS_ARRAY, 1, "null")
45 ZEND_END_ARG_INFO()
46 
47 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMNode_C14NFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
48 	ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
49 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, exclusive, _IS_BOOL, 0, "false")
50 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, withComments, _IS_BOOL, 0, "false")
51 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, xpath, IS_ARRAY, 1, "null")
52 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nsPrefixes, IS_ARRAY, 1, "null")
53 ZEND_END_ARG_INFO()
54 
55 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_cloneNode, 0, 0, 0)
56 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deep, _IS_BOOL, 0, "false")
57 ZEND_END_ARG_INFO()
58 
59 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_getLineNo, 0, 0, IS_LONG, 0)
60 ZEND_END_ARG_INFO()
61 
62 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_getNodePath, 0, 0, IS_STRING, 1)
63 ZEND_END_ARG_INFO()
64 
65 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_hasAttributes, 0, 0, _IS_BOOL, 0)
66 ZEND_END_ARG_INFO()
67 
68 #define arginfo_class_DOMNode_hasChildNodes arginfo_class_DOMNode_hasAttributes
69 
70 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_insertBefore, 0, 0, 1)
71 	ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0)
72 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, child, DOMNode, 1, "null")
73 ZEND_END_ARG_INFO()
74 
75 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_isDefaultNamespace, 0, 1, _IS_BOOL, 0)
76 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
77 ZEND_END_ARG_INFO()
78 
79 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_isSameNode, 0, 1, _IS_BOOL, 0)
80 	ZEND_ARG_OBJ_INFO(0, otherNode, DOMNode, 0)
81 ZEND_END_ARG_INFO()
82 
83 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_isSupported, 0, 2, _IS_BOOL, 0)
84 	ZEND_ARG_TYPE_INFO(0, feature, IS_STRING, 0)
85 	ZEND_ARG_TYPE_INFO(0, version, IS_STRING, 0)
86 ZEND_END_ARG_INFO()
87 
88 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_lookupNamespaceURI, 0, 1, IS_STRING, 1)
89 	ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 1)
90 ZEND_END_ARG_INFO()
91 
92 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_lookupPrefix, 0, 1, IS_STRING, 1)
93 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
94 ZEND_END_ARG_INFO()
95 
96 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_normalize, 0, 0, IS_VOID, 0)
97 ZEND_END_ARG_INFO()
98 
99 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_removeChild, 0, 0, 1)
100 	ZEND_ARG_OBJ_INFO(0, child, DOMNode, 0)
101 ZEND_END_ARG_INFO()
102 
103 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_replaceChild, 0, 0, 2)
104 	ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0)
105 	ZEND_ARG_OBJ_INFO(0, child, DOMNode, 0)
106 ZEND_END_ARG_INFO()
107 
108 #define arginfo_class_DOMNameSpaceNode___sleep arginfo_class_DOMNode___sleep
109 
110 #define arginfo_class_DOMNameSpaceNode___wakeup arginfo_class_DOMChildNode_remove
111 
112 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMImplementation_getFeature, 0, 2, IS_NEVER, 0)
113 	ZEND_ARG_TYPE_INFO(0, feature, IS_STRING, 0)
114 	ZEND_ARG_TYPE_INFO(0, version, IS_STRING, 0)
115 ZEND_END_ARG_INFO()
116 
117 #define arginfo_class_DOMImplementation_hasFeature arginfo_class_DOMNode_isSupported
118 
119 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMImplementation_createDocumentType, 0, 0, 1)
120 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
121 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, publicId, IS_STRING, 0, "\"\"")
122 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, systemId, IS_STRING, 0, "\"\"")
123 ZEND_END_ARG_INFO()
124 
125 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMImplementation_createDocument, 0, 0, 0)
126 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, namespace, IS_STRING, 1, "null")
127 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, qualifiedName, IS_STRING, 0, "\"\"")
128 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, doctype, DOMDocumentType, 1, "null")
129 ZEND_END_ARG_INFO()
130 
131 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocumentFragment___construct, 0, 0, 0)
132 ZEND_END_ARG_INFO()
133 
134 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocumentFragment_appendXML, 0, 1, _IS_BOOL, 0)
135 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
136 ZEND_END_ARG_INFO()
137 
138 #define arginfo_class_DOMDocumentFragment_append arginfo_class_DOMParentNode_append
139 
140 #define arginfo_class_DOMDocumentFragment_prepend arginfo_class_DOMParentNode_append
141 
142 #define arginfo_class_DOMNodeList_count arginfo_class_DOMNode_getLineNo
143 
144 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOMNodeList_getIterator, 0, 0, Iterator, 0)
145 ZEND_END_ARG_INFO()
146 
147 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNodeList_item, 0, 0, 1)
148 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
149 ZEND_END_ARG_INFO()
150 
151 #define arginfo_class_DOMCharacterData_appendData arginfo_class_DOMDocumentFragment_appendXML
152 
153 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMCharacterData_substringData, 0, 0, 2)
154 	ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
155 	ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
156 ZEND_END_ARG_INFO()
157 
158 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMCharacterData_insertData, 0, 2, _IS_BOOL, 0)
159 	ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
160 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
161 ZEND_END_ARG_INFO()
162 
163 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMCharacterData_deleteData, 0, 2, _IS_BOOL, 0)
164 	ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
165 	ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
166 ZEND_END_ARG_INFO()
167 
168 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMCharacterData_replaceData, 0, 3, _IS_BOOL, 0)
169 	ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
170 	ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
171 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
172 ZEND_END_ARG_INFO()
173 
174 #define arginfo_class_DOMCharacterData_replaceWith arginfo_class_DOMParentNode_append
175 
176 #define arginfo_class_DOMCharacterData_remove arginfo_class_DOMChildNode_remove
177 
178 #define arginfo_class_DOMCharacterData_before arginfo_class_DOMParentNode_append
179 
180 #define arginfo_class_DOMCharacterData_after arginfo_class_DOMParentNode_append
181 
182 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMAttr___construct, 0, 0, 1)
183 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
184 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 0, "\"\"")
185 ZEND_END_ARG_INFO()
186 
187 #define arginfo_class_DOMAttr_isId arginfo_class_DOMNode_hasAttributes
188 
189 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement___construct, 0, 0, 1)
190 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
191 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 1, "null")
192 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, namespace, IS_STRING, 0, "\"\"")
193 ZEND_END_ARG_INFO()
194 
195 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_getAttribute, 0, 1, IS_STRING, 0)
196 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
197 ZEND_END_ARG_INFO()
198 
199 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_getAttributeNS, 0, 2, IS_STRING, 0)
200 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
201 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
202 ZEND_END_ARG_INFO()
203 
204 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_getAttributeNode, 0, 0, 1)
205 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
206 ZEND_END_ARG_INFO()
207 
208 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_getAttributeNodeNS, 0, 0, 2)
209 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
210 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
211 ZEND_END_ARG_INFO()
212 
213 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMElement_getElementsByTagName, 0, 1, DOMNodeList, 0)
214 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
215 ZEND_END_ARG_INFO()
216 
217 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMElement_getElementsByTagNameNS, 0, 2, DOMNodeList, 0)
218 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
219 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
220 ZEND_END_ARG_INFO()
221 
222 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_hasAttribute, 0, 1, _IS_BOOL, 0)
223 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
224 ZEND_END_ARG_INFO()
225 
226 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_hasAttributeNS, 0, 2, _IS_BOOL, 0)
227 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
228 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
229 ZEND_END_ARG_INFO()
230 
231 #define arginfo_class_DOMElement_removeAttribute arginfo_class_DOMElement_hasAttribute
232 
233 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_removeAttributeNS, 0, 2, IS_VOID, 0)
234 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
235 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
236 ZEND_END_ARG_INFO()
237 
238 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_removeAttributeNode, 0, 0, 1)
239 	ZEND_ARG_OBJ_INFO(0, attr, DOMAttr, 0)
240 ZEND_END_ARG_INFO()
241 
242 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_setAttribute, 0, 0, 2)
243 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
244 	ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
245 ZEND_END_ARG_INFO()
246 
247 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setAttributeNS, 0, 3, IS_VOID, 0)
248 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
249 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
250 	ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
251 ZEND_END_ARG_INFO()
252 
253 #define arginfo_class_DOMElement_setAttributeNode arginfo_class_DOMElement_removeAttributeNode
254 
255 #define arginfo_class_DOMElement_setAttributeNodeNS arginfo_class_DOMElement_removeAttributeNode
256 
257 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setIdAttribute, 0, 2, IS_VOID, 0)
258 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
259 	ZEND_ARG_TYPE_INFO(0, isId, _IS_BOOL, 0)
260 ZEND_END_ARG_INFO()
261 
262 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setIdAttributeNS, 0, 3, IS_VOID, 0)
263 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
264 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
265 	ZEND_ARG_TYPE_INFO(0, isId, _IS_BOOL, 0)
266 ZEND_END_ARG_INFO()
267 
268 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setIdAttributeNode, 0, 2, IS_VOID, 0)
269 	ZEND_ARG_OBJ_INFO(0, attr, DOMAttr, 0)
270 	ZEND_ARG_TYPE_INFO(0, isId, _IS_BOOL, 0)
271 ZEND_END_ARG_INFO()
272 
273 #define arginfo_class_DOMElement_remove arginfo_class_DOMChildNode_remove
274 
275 #define arginfo_class_DOMElement_before arginfo_class_DOMParentNode_append
276 
277 #define arginfo_class_DOMElement_after arginfo_class_DOMParentNode_append
278 
279 #define arginfo_class_DOMElement_replaceWith arginfo_class_DOMParentNode_append
280 
281 #define arginfo_class_DOMElement_append arginfo_class_DOMParentNode_append
282 
283 #define arginfo_class_DOMElement_prepend arginfo_class_DOMParentNode_append
284 
285 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument___construct, 0, 0, 0)
286 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, version, IS_STRING, 0, "\"1.0\"")
287 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 0, "\"\"")
288 ZEND_END_ARG_INFO()
289 
290 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createAttribute, 0, 0, 1)
291 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
292 ZEND_END_ARG_INFO()
293 
294 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createAttributeNS, 0, 0, 2)
295 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
296 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
297 ZEND_END_ARG_INFO()
298 
299 #define arginfo_class_DOMDocument_createCDATASection arginfo_class_DOMCdataSection___construct
300 
301 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_createComment, 0, 1, DOMComment, 0)
302 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
303 ZEND_END_ARG_INFO()
304 
305 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_createDocumentFragment, 0, 0, DOMDocumentFragment, 0)
306 ZEND_END_ARG_INFO()
307 
308 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createElement, 0, 0, 1)
309 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
310 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 0, "\"\"")
311 ZEND_END_ARG_INFO()
312 
313 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createElementNS, 0, 0, 2)
314 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
315 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
316 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 0, "\"\"")
317 ZEND_END_ARG_INFO()
318 
319 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createEntityReference, 0, 0, 1)
320 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
321 ZEND_END_ARG_INFO()
322 
323 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createProcessingInstruction, 0, 0, 1)
324 	ZEND_ARG_TYPE_INFO(0, target, IS_STRING, 0)
325 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data, IS_STRING, 0, "\"\"")
326 ZEND_END_ARG_INFO()
327 
328 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_createTextNode, 0, 1, DOMText, 0)
329 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
330 ZEND_END_ARG_INFO()
331 
332 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_getElementById, 0, 1, DOMElement, 1)
333 	ZEND_ARG_TYPE_INFO(0, elementId, IS_STRING, 0)
334 ZEND_END_ARG_INFO()
335 
336 #define arginfo_class_DOMDocument_getElementsByTagName arginfo_class_DOMElement_getElementsByTagName
337 
338 #define arginfo_class_DOMDocument_getElementsByTagNameNS arginfo_class_DOMElement_getElementsByTagNameNS
339 
340 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_importNode, 0, 0, 1)
341 	ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0)
342 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deep, _IS_BOOL, 0, "false")
343 ZEND_END_ARG_INFO()
344 
345 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_load, 0, 0, 1)
346 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
347 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
348 ZEND_END_ARG_INFO()
349 
350 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_loadXML, 0, 0, 1)
351 	ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
352 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
353 ZEND_END_ARG_INFO()
354 
355 #define arginfo_class_DOMDocument_normalizeDocument arginfo_class_DOMNode_normalize
356 
357 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_registerNodeClass, 0, 2, _IS_BOOL, 0)
358 	ZEND_ARG_TYPE_INFO(0, baseClass, IS_STRING, 0)
359 	ZEND_ARG_TYPE_INFO(0, extendedClass, IS_STRING, 1)
360 ZEND_END_ARG_INFO()
361 
362 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_save, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
363 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
364 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
365 ZEND_END_ARG_INFO()
366 
367 #if defined(LIBXML_HTML_ENABLED)
368 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_loadHTML, 0, 0, 1)
369 	ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
370 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
371 ZEND_END_ARG_INFO()
372 #endif
373 
374 #if defined(LIBXML_HTML_ENABLED)
375 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_loadHTMLFile, 0, 0, 1)
376 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
377 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
378 ZEND_END_ARG_INFO()
379 #endif
380 
381 #if defined(LIBXML_HTML_ENABLED)
382 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_saveHTML, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
383 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, DOMNode, 1, "null")
384 ZEND_END_ARG_INFO()
385 #endif
386 
387 #if defined(LIBXML_HTML_ENABLED)
388 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_saveHTMLFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
389 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
390 ZEND_END_ARG_INFO()
391 #endif
392 
393 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_saveXML, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
394 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, DOMNode, 1, "null")
395 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
396 ZEND_END_ARG_INFO()
397 
398 #if defined(LIBXML_SCHEMAS_ENABLED)
399 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_schemaValidate, 0, 1, _IS_BOOL, 0)
400 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
401 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
402 ZEND_END_ARG_INFO()
403 #endif
404 
405 #if defined(LIBXML_SCHEMAS_ENABLED)
406 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_schemaValidateSource, 0, 1, _IS_BOOL, 0)
407 	ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
408 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
409 ZEND_END_ARG_INFO()
410 #endif
411 
412 #if defined(LIBXML_SCHEMAS_ENABLED)
413 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_relaxNGValidate, 0, 1, _IS_BOOL, 0)
414 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
415 ZEND_END_ARG_INFO()
416 #endif
417 
418 #if defined(LIBXML_SCHEMAS_ENABLED)
419 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_relaxNGValidateSource, 0, 1, _IS_BOOL, 0)
420 	ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
421 ZEND_END_ARG_INFO()
422 #endif
423 
424 #define arginfo_class_DOMDocument_validate arginfo_class_DOMNode_hasAttributes
425 
426 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_xinclude, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
427 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
428 ZEND_END_ARG_INFO()
429 
430 #define arginfo_class_DOMDocument_adoptNode arginfo_class_DOMNode_appendChild
431 
432 #define arginfo_class_DOMDocument_append arginfo_class_DOMParentNode_append
433 
434 #define arginfo_class_DOMDocument_prepend arginfo_class_DOMParentNode_append
435 
436 #define arginfo_class_DOMText___construct arginfo_class_DOMComment___construct
437 
438 #define arginfo_class_DOMText_isWhitespaceInElementContent arginfo_class_DOMNode_hasAttributes
439 
440 #define arginfo_class_DOMText_isElementContentWhitespace arginfo_class_DOMNode_hasAttributes
441 
442 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMText_splitText, 0, 0, 1)
443 	ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
444 ZEND_END_ARG_INFO()
445 
446 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMNamedNodeMap_getNamedItem, 0, 1, DOMNode, 1)
447 	ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
448 ZEND_END_ARG_INFO()
449 
450 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMNamedNodeMap_getNamedItemNS, 0, 2, DOMNode, 1)
451 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
452 	ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
453 ZEND_END_ARG_INFO()
454 
455 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMNamedNodeMap_item, 0, 1, DOMNode, 1)
456 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
457 ZEND_END_ARG_INFO()
458 
459 #define arginfo_class_DOMNamedNodeMap_count arginfo_class_DOMNode_getLineNo
460 
461 #define arginfo_class_DOMNamedNodeMap_getIterator arginfo_class_DOMNodeList_getIterator
462 
463 #define arginfo_class_DOMEntityReference___construct arginfo_class_DOMDocument_createEntityReference
464 
465 #define arginfo_class_DOMProcessingInstruction___construct arginfo_class_DOMAttr___construct
466 
467 #if defined(LIBXML_XPATH_ENABLED)
468 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMXPath___construct, 0, 0, 1)
469 	ZEND_ARG_OBJ_INFO(0, document, DOMDocument, 0)
470 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, registerNodeNS, _IS_BOOL, 0, "true")
471 ZEND_END_ARG_INFO()
472 #endif
473 
474 #if defined(LIBXML_XPATH_ENABLED)
475 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMXPath_evaluate, 0, 1, IS_MIXED, 0)
476 	ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0)
477 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, contextNode, DOMNode, 1, "null")
478 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, registerNodeNS, _IS_BOOL, 0, "true")
479 ZEND_END_ARG_INFO()
480 #endif
481 
482 #if defined(LIBXML_XPATH_ENABLED)
483 #define arginfo_class_DOMXPath_query arginfo_class_DOMXPath_evaluate
484 #endif
485 
486 #if defined(LIBXML_XPATH_ENABLED)
487 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMXPath_registerNamespace, 0, 2, _IS_BOOL, 0)
488 	ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 0)
489 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
490 ZEND_END_ARG_INFO()
491 #endif
492 
493 #if defined(LIBXML_XPATH_ENABLED)
494 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMXPath_registerPhpFunctions, 0, 0, IS_VOID, 0)
495 	ZEND_ARG_TYPE_MASK(0, restrict, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL, "null")
496 ZEND_END_ARG_INFO()
497 #endif
498 
499 
500 ZEND_FUNCTION(dom_import_simplexml);
501 ZEND_METHOD(DOMCdataSection, __construct);
502 ZEND_METHOD(DOMComment, __construct);
503 ZEND_METHOD(DOMNode, __sleep);
504 ZEND_METHOD(DOMNode, __wakeup);
505 ZEND_METHOD(DOMNode, appendChild);
506 ZEND_METHOD(DOMNode, C14N);
507 ZEND_METHOD(DOMNode, C14NFile);
508 ZEND_METHOD(DOMNode, cloneNode);
509 ZEND_METHOD(DOMNode, getLineNo);
510 ZEND_METHOD(DOMNode, getNodePath);
511 ZEND_METHOD(DOMNode, hasAttributes);
512 ZEND_METHOD(DOMNode, hasChildNodes);
513 ZEND_METHOD(DOMNode, insertBefore);
514 ZEND_METHOD(DOMNode, isDefaultNamespace);
515 ZEND_METHOD(DOMNode, isSameNode);
516 ZEND_METHOD(DOMNode, isSupported);
517 ZEND_METHOD(DOMNode, lookupNamespaceURI);
518 ZEND_METHOD(DOMNode, lookupPrefix);
519 ZEND_METHOD(DOMNode, normalize);
520 ZEND_METHOD(DOMNode, removeChild);
521 ZEND_METHOD(DOMNode, replaceChild);
522 ZEND_METHOD(DOMImplementation, getFeature);
523 ZEND_METHOD(DOMImplementation, hasFeature);
524 ZEND_METHOD(DOMImplementation, createDocumentType);
525 ZEND_METHOD(DOMImplementation, createDocument);
526 ZEND_METHOD(DOMDocumentFragment, __construct);
527 ZEND_METHOD(DOMDocumentFragment, appendXML);
528 ZEND_METHOD(DOMDocumentFragment, append);
529 ZEND_METHOD(DOMDocumentFragment, prepend);
530 ZEND_METHOD(DOMNodeList, count);
531 ZEND_METHOD(DOMNodeList, getIterator);
532 ZEND_METHOD(DOMNodeList, item);
533 ZEND_METHOD(DOMCharacterData, appendData);
534 ZEND_METHOD(DOMCharacterData, substringData);
535 ZEND_METHOD(DOMCharacterData, insertData);
536 ZEND_METHOD(DOMCharacterData, deleteData);
537 ZEND_METHOD(DOMCharacterData, replaceData);
538 ZEND_METHOD(DOMCharacterData, replaceWith);
539 ZEND_METHOD(DOMCharacterData, remove);
540 ZEND_METHOD(DOMCharacterData, before);
541 ZEND_METHOD(DOMCharacterData, after);
542 ZEND_METHOD(DOMAttr, __construct);
543 ZEND_METHOD(DOMAttr, isId);
544 ZEND_METHOD(DOMElement, __construct);
545 ZEND_METHOD(DOMElement, getAttribute);
546 ZEND_METHOD(DOMElement, getAttributeNS);
547 ZEND_METHOD(DOMElement, getAttributeNode);
548 ZEND_METHOD(DOMElement, getAttributeNodeNS);
549 ZEND_METHOD(DOMElement, getElementsByTagName);
550 ZEND_METHOD(DOMElement, getElementsByTagNameNS);
551 ZEND_METHOD(DOMElement, hasAttribute);
552 ZEND_METHOD(DOMElement, hasAttributeNS);
553 ZEND_METHOD(DOMElement, removeAttribute);
554 ZEND_METHOD(DOMElement, removeAttributeNS);
555 ZEND_METHOD(DOMElement, removeAttributeNode);
556 ZEND_METHOD(DOMElement, setAttribute);
557 ZEND_METHOD(DOMElement, setAttributeNS);
558 ZEND_METHOD(DOMElement, setAttributeNode);
559 ZEND_METHOD(DOMElement, setAttributeNodeNS);
560 ZEND_METHOD(DOMElement, setIdAttribute);
561 ZEND_METHOD(DOMElement, setIdAttributeNS);
562 ZEND_METHOD(DOMElement, setIdAttributeNode);
563 ZEND_METHOD(DOMElement, remove);
564 ZEND_METHOD(DOMElement, before);
565 ZEND_METHOD(DOMElement, after);
566 ZEND_METHOD(DOMElement, replaceWith);
567 ZEND_METHOD(DOMElement, append);
568 ZEND_METHOD(DOMElement, prepend);
569 ZEND_METHOD(DOMDocument, __construct);
570 ZEND_METHOD(DOMDocument, createAttribute);
571 ZEND_METHOD(DOMDocument, createAttributeNS);
572 ZEND_METHOD(DOMDocument, createCDATASection);
573 ZEND_METHOD(DOMDocument, createComment);
574 ZEND_METHOD(DOMDocument, createDocumentFragment);
575 ZEND_METHOD(DOMDocument, createElement);
576 ZEND_METHOD(DOMDocument, createElementNS);
577 ZEND_METHOD(DOMDocument, createEntityReference);
578 ZEND_METHOD(DOMDocument, createProcessingInstruction);
579 ZEND_METHOD(DOMDocument, createTextNode);
580 ZEND_METHOD(DOMDocument, getElementById);
581 ZEND_METHOD(DOMDocument, getElementsByTagName);
582 ZEND_METHOD(DOMDocument, getElementsByTagNameNS);
583 ZEND_METHOD(DOMDocument, importNode);
584 ZEND_METHOD(DOMDocument, load);
585 ZEND_METHOD(DOMDocument, loadXML);
586 ZEND_METHOD(DOMDocument, normalizeDocument);
587 ZEND_METHOD(DOMDocument, registerNodeClass);
588 ZEND_METHOD(DOMDocument, save);
589 #if defined(LIBXML_HTML_ENABLED)
590 ZEND_METHOD(DOMDocument, loadHTML);
591 #endif
592 #if defined(LIBXML_HTML_ENABLED)
593 ZEND_METHOD(DOMDocument, loadHTMLFile);
594 #endif
595 #if defined(LIBXML_HTML_ENABLED)
596 ZEND_METHOD(DOMDocument, saveHTML);
597 #endif
598 #if defined(LIBXML_HTML_ENABLED)
599 ZEND_METHOD(DOMDocument, saveHTMLFile);
600 #endif
601 ZEND_METHOD(DOMDocument, saveXML);
602 #if defined(LIBXML_SCHEMAS_ENABLED)
603 ZEND_METHOD(DOMDocument, schemaValidate);
604 #endif
605 #if defined(LIBXML_SCHEMAS_ENABLED)
606 ZEND_METHOD(DOMDocument, schemaValidateSource);
607 #endif
608 #if defined(LIBXML_SCHEMAS_ENABLED)
609 ZEND_METHOD(DOMDocument, relaxNGValidate);
610 #endif
611 #if defined(LIBXML_SCHEMAS_ENABLED)
612 ZEND_METHOD(DOMDocument, relaxNGValidateSource);
613 #endif
614 ZEND_METHOD(DOMDocument, validate);
615 ZEND_METHOD(DOMDocument, xinclude);
616 ZEND_METHOD(DOMDocument, adoptNode);
617 ZEND_METHOD(DOMDocument, append);
618 ZEND_METHOD(DOMDocument, prepend);
619 ZEND_METHOD(DOMText, __construct);
620 ZEND_METHOD(DOMText, isWhitespaceInElementContent);
621 ZEND_METHOD(DOMText, splitText);
622 ZEND_METHOD(DOMNamedNodeMap, getNamedItem);
623 ZEND_METHOD(DOMNamedNodeMap, getNamedItemNS);
624 ZEND_METHOD(DOMNamedNodeMap, item);
625 ZEND_METHOD(DOMNamedNodeMap, count);
626 ZEND_METHOD(DOMNamedNodeMap, getIterator);
627 ZEND_METHOD(DOMEntityReference, __construct);
628 ZEND_METHOD(DOMProcessingInstruction, __construct);
629 #if defined(LIBXML_XPATH_ENABLED)
630 ZEND_METHOD(DOMXPath, __construct);
631 #endif
632 #if defined(LIBXML_XPATH_ENABLED)
633 ZEND_METHOD(DOMXPath, evaluate);
634 #endif
635 #if defined(LIBXML_XPATH_ENABLED)
636 ZEND_METHOD(DOMXPath, query);
637 #endif
638 #if defined(LIBXML_XPATH_ENABLED)
639 ZEND_METHOD(DOMXPath, registerNamespace);
640 #endif
641 #if defined(LIBXML_XPATH_ENABLED)
642 ZEND_METHOD(DOMXPath, registerPhpFunctions);
643 #endif
644 
645 
646 static const zend_function_entry ext_functions[] = {
647 	ZEND_FE(dom_import_simplexml, arginfo_dom_import_simplexml)
648 	ZEND_FE_END
649 };
650 
651 
652 static const zend_function_entry class_DOMDocumentType_methods[] = {
653 	ZEND_FE_END
654 };
655 
656 
657 static const zend_function_entry class_DOMCdataSection_methods[] = {
658 	ZEND_ME(DOMCdataSection, __construct, arginfo_class_DOMCdataSection___construct, ZEND_ACC_PUBLIC)
659 	ZEND_FE_END
660 };
661 
662 
663 static const zend_function_entry class_DOMComment_methods[] = {
664 	ZEND_ME(DOMComment, __construct, arginfo_class_DOMComment___construct, ZEND_ACC_PUBLIC)
665 	ZEND_FE_END
666 };
667 
668 
669 static const zend_function_entry class_DOMParentNode_methods[] = {
670 	ZEND_ABSTRACT_ME_WITH_FLAGS(DOMParentNode, append, arginfo_class_DOMParentNode_append, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
671 	ZEND_ABSTRACT_ME_WITH_FLAGS(DOMParentNode, prepend, arginfo_class_DOMParentNode_prepend, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
672 	ZEND_FE_END
673 };
674 
675 
676 static const zend_function_entry class_DOMChildNode_methods[] = {
677 	ZEND_ABSTRACT_ME_WITH_FLAGS(DOMChildNode, remove, arginfo_class_DOMChildNode_remove, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
678 	ZEND_ABSTRACT_ME_WITH_FLAGS(DOMChildNode, before, arginfo_class_DOMChildNode_before, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
679 	ZEND_ABSTRACT_ME_WITH_FLAGS(DOMChildNode, after, arginfo_class_DOMChildNode_after, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
680 	ZEND_ABSTRACT_ME_WITH_FLAGS(DOMChildNode, replaceWith, arginfo_class_DOMChildNode_replaceWith, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
681 	ZEND_FE_END
682 };
683 
684 
685 static const zend_function_entry class_DOMNode_methods[] = {
686 	ZEND_ME(DOMNode, __sleep, arginfo_class_DOMNode___sleep, ZEND_ACC_PUBLIC)
687 	ZEND_ME(DOMNode, __wakeup, arginfo_class_DOMNode___wakeup, ZEND_ACC_PUBLIC)
688 	ZEND_ME(DOMNode, appendChild, arginfo_class_DOMNode_appendChild, ZEND_ACC_PUBLIC)
689 	ZEND_ME(DOMNode, C14N, arginfo_class_DOMNode_C14N, ZEND_ACC_PUBLIC)
690 	ZEND_ME(DOMNode, C14NFile, arginfo_class_DOMNode_C14NFile, ZEND_ACC_PUBLIC)
691 	ZEND_ME(DOMNode, cloneNode, arginfo_class_DOMNode_cloneNode, ZEND_ACC_PUBLIC)
692 	ZEND_ME(DOMNode, getLineNo, arginfo_class_DOMNode_getLineNo, ZEND_ACC_PUBLIC)
693 	ZEND_ME(DOMNode, getNodePath, arginfo_class_DOMNode_getNodePath, ZEND_ACC_PUBLIC)
694 	ZEND_ME(DOMNode, hasAttributes, arginfo_class_DOMNode_hasAttributes, ZEND_ACC_PUBLIC)
695 	ZEND_ME(DOMNode, hasChildNodes, arginfo_class_DOMNode_hasChildNodes, ZEND_ACC_PUBLIC)
696 	ZEND_ME(DOMNode, insertBefore, arginfo_class_DOMNode_insertBefore, ZEND_ACC_PUBLIC)
697 	ZEND_ME(DOMNode, isDefaultNamespace, arginfo_class_DOMNode_isDefaultNamespace, ZEND_ACC_PUBLIC)
698 	ZEND_ME(DOMNode, isSameNode, arginfo_class_DOMNode_isSameNode, ZEND_ACC_PUBLIC)
699 	ZEND_ME(DOMNode, isSupported, arginfo_class_DOMNode_isSupported, ZEND_ACC_PUBLIC)
700 	ZEND_ME(DOMNode, lookupNamespaceURI, arginfo_class_DOMNode_lookupNamespaceURI, ZEND_ACC_PUBLIC)
701 	ZEND_ME(DOMNode, lookupPrefix, arginfo_class_DOMNode_lookupPrefix, ZEND_ACC_PUBLIC)
702 	ZEND_ME(DOMNode, normalize, arginfo_class_DOMNode_normalize, ZEND_ACC_PUBLIC)
703 	ZEND_ME(DOMNode, removeChild, arginfo_class_DOMNode_removeChild, ZEND_ACC_PUBLIC)
704 	ZEND_ME(DOMNode, replaceChild, arginfo_class_DOMNode_replaceChild, ZEND_ACC_PUBLIC)
705 	ZEND_FE_END
706 };
707 
708 
709 static const zend_function_entry class_DOMNameSpaceNode_methods[] = {
710 	ZEND_MALIAS(DOMNode, __sleep, __sleep, arginfo_class_DOMNameSpaceNode___sleep, ZEND_ACC_PUBLIC)
711 	ZEND_MALIAS(DOMNode, __wakeup, __wakeup, arginfo_class_DOMNameSpaceNode___wakeup, ZEND_ACC_PUBLIC)
712 	ZEND_FE_END
713 };
714 
715 
716 static const zend_function_entry class_DOMImplementation_methods[] = {
717 	ZEND_ME(DOMImplementation, getFeature, arginfo_class_DOMImplementation_getFeature, ZEND_ACC_PUBLIC)
718 	ZEND_ME(DOMImplementation, hasFeature, arginfo_class_DOMImplementation_hasFeature, ZEND_ACC_PUBLIC)
719 	ZEND_ME(DOMImplementation, createDocumentType, arginfo_class_DOMImplementation_createDocumentType, ZEND_ACC_PUBLIC)
720 	ZEND_ME(DOMImplementation, createDocument, arginfo_class_DOMImplementation_createDocument, ZEND_ACC_PUBLIC)
721 	ZEND_FE_END
722 };
723 
724 
725 static const zend_function_entry class_DOMDocumentFragment_methods[] = {
726 	ZEND_ME(DOMDocumentFragment, __construct, arginfo_class_DOMDocumentFragment___construct, ZEND_ACC_PUBLIC)
727 	ZEND_ME(DOMDocumentFragment, appendXML, arginfo_class_DOMDocumentFragment_appendXML, ZEND_ACC_PUBLIC)
728 	ZEND_ME(DOMDocumentFragment, append, arginfo_class_DOMDocumentFragment_append, ZEND_ACC_PUBLIC)
729 	ZEND_ME(DOMDocumentFragment, prepend, arginfo_class_DOMDocumentFragment_prepend, ZEND_ACC_PUBLIC)
730 	ZEND_FE_END
731 };
732 
733 
734 static const zend_function_entry class_DOMNodeList_methods[] = {
735 	ZEND_ME(DOMNodeList, count, arginfo_class_DOMNodeList_count, ZEND_ACC_PUBLIC)
736 	ZEND_ME(DOMNodeList, getIterator, arginfo_class_DOMNodeList_getIterator, ZEND_ACC_PUBLIC)
737 	ZEND_ME(DOMNodeList, item, arginfo_class_DOMNodeList_item, ZEND_ACC_PUBLIC)
738 	ZEND_FE_END
739 };
740 
741 
742 static const zend_function_entry class_DOMCharacterData_methods[] = {
743 	ZEND_ME(DOMCharacterData, appendData, arginfo_class_DOMCharacterData_appendData, ZEND_ACC_PUBLIC)
744 	ZEND_ME(DOMCharacterData, substringData, arginfo_class_DOMCharacterData_substringData, ZEND_ACC_PUBLIC)
745 	ZEND_ME(DOMCharacterData, insertData, arginfo_class_DOMCharacterData_insertData, ZEND_ACC_PUBLIC)
746 	ZEND_ME(DOMCharacterData, deleteData, arginfo_class_DOMCharacterData_deleteData, ZEND_ACC_PUBLIC)
747 	ZEND_ME(DOMCharacterData, replaceData, arginfo_class_DOMCharacterData_replaceData, ZEND_ACC_PUBLIC)
748 	ZEND_ME(DOMCharacterData, replaceWith, arginfo_class_DOMCharacterData_replaceWith, ZEND_ACC_PUBLIC)
749 	ZEND_ME(DOMCharacterData, remove, arginfo_class_DOMCharacterData_remove, ZEND_ACC_PUBLIC)
750 	ZEND_ME(DOMCharacterData, before, arginfo_class_DOMCharacterData_before, ZEND_ACC_PUBLIC)
751 	ZEND_ME(DOMCharacterData, after, arginfo_class_DOMCharacterData_after, ZEND_ACC_PUBLIC)
752 	ZEND_FE_END
753 };
754 
755 
756 static const zend_function_entry class_DOMAttr_methods[] = {
757 	ZEND_ME(DOMAttr, __construct, arginfo_class_DOMAttr___construct, ZEND_ACC_PUBLIC)
758 	ZEND_ME(DOMAttr, isId, arginfo_class_DOMAttr_isId, ZEND_ACC_PUBLIC)
759 	ZEND_FE_END
760 };
761 
762 
763 static const zend_function_entry class_DOMElement_methods[] = {
764 	ZEND_ME(DOMElement, __construct, arginfo_class_DOMElement___construct, ZEND_ACC_PUBLIC)
765 	ZEND_ME(DOMElement, getAttribute, arginfo_class_DOMElement_getAttribute, ZEND_ACC_PUBLIC)
766 	ZEND_ME(DOMElement, getAttributeNS, arginfo_class_DOMElement_getAttributeNS, ZEND_ACC_PUBLIC)
767 	ZEND_ME(DOMElement, getAttributeNode, arginfo_class_DOMElement_getAttributeNode, ZEND_ACC_PUBLIC)
768 	ZEND_ME(DOMElement, getAttributeNodeNS, arginfo_class_DOMElement_getAttributeNodeNS, ZEND_ACC_PUBLIC)
769 	ZEND_ME(DOMElement, getElementsByTagName, arginfo_class_DOMElement_getElementsByTagName, ZEND_ACC_PUBLIC)
770 	ZEND_ME(DOMElement, getElementsByTagNameNS, arginfo_class_DOMElement_getElementsByTagNameNS, ZEND_ACC_PUBLIC)
771 	ZEND_ME(DOMElement, hasAttribute, arginfo_class_DOMElement_hasAttribute, ZEND_ACC_PUBLIC)
772 	ZEND_ME(DOMElement, hasAttributeNS, arginfo_class_DOMElement_hasAttributeNS, ZEND_ACC_PUBLIC)
773 	ZEND_ME(DOMElement, removeAttribute, arginfo_class_DOMElement_removeAttribute, ZEND_ACC_PUBLIC)
774 	ZEND_ME(DOMElement, removeAttributeNS, arginfo_class_DOMElement_removeAttributeNS, ZEND_ACC_PUBLIC)
775 	ZEND_ME(DOMElement, removeAttributeNode, arginfo_class_DOMElement_removeAttributeNode, ZEND_ACC_PUBLIC)
776 	ZEND_ME(DOMElement, setAttribute, arginfo_class_DOMElement_setAttribute, ZEND_ACC_PUBLIC)
777 	ZEND_ME(DOMElement, setAttributeNS, arginfo_class_DOMElement_setAttributeNS, ZEND_ACC_PUBLIC)
778 	ZEND_ME(DOMElement, setAttributeNode, arginfo_class_DOMElement_setAttributeNode, ZEND_ACC_PUBLIC)
779 	ZEND_ME(DOMElement, setAttributeNodeNS, arginfo_class_DOMElement_setAttributeNodeNS, ZEND_ACC_PUBLIC)
780 	ZEND_ME(DOMElement, setIdAttribute, arginfo_class_DOMElement_setIdAttribute, ZEND_ACC_PUBLIC)
781 	ZEND_ME(DOMElement, setIdAttributeNS, arginfo_class_DOMElement_setIdAttributeNS, ZEND_ACC_PUBLIC)
782 	ZEND_ME(DOMElement, setIdAttributeNode, arginfo_class_DOMElement_setIdAttributeNode, ZEND_ACC_PUBLIC)
783 	ZEND_ME(DOMElement, remove, arginfo_class_DOMElement_remove, ZEND_ACC_PUBLIC)
784 	ZEND_ME(DOMElement, before, arginfo_class_DOMElement_before, ZEND_ACC_PUBLIC)
785 	ZEND_ME(DOMElement, after, arginfo_class_DOMElement_after, ZEND_ACC_PUBLIC)
786 	ZEND_ME(DOMElement, replaceWith, arginfo_class_DOMElement_replaceWith, ZEND_ACC_PUBLIC)
787 	ZEND_ME(DOMElement, append, arginfo_class_DOMElement_append, ZEND_ACC_PUBLIC)
788 	ZEND_ME(DOMElement, prepend, arginfo_class_DOMElement_prepend, ZEND_ACC_PUBLIC)
789 	ZEND_FE_END
790 };
791 
792 
793 static const zend_function_entry class_DOMDocument_methods[] = {
794 	ZEND_ME(DOMDocument, __construct, arginfo_class_DOMDocument___construct, ZEND_ACC_PUBLIC)
795 	ZEND_ME(DOMDocument, createAttribute, arginfo_class_DOMDocument_createAttribute, ZEND_ACC_PUBLIC)
796 	ZEND_ME(DOMDocument, createAttributeNS, arginfo_class_DOMDocument_createAttributeNS, ZEND_ACC_PUBLIC)
797 	ZEND_ME(DOMDocument, createCDATASection, arginfo_class_DOMDocument_createCDATASection, ZEND_ACC_PUBLIC)
798 	ZEND_ME(DOMDocument, createComment, arginfo_class_DOMDocument_createComment, ZEND_ACC_PUBLIC)
799 	ZEND_ME(DOMDocument, createDocumentFragment, arginfo_class_DOMDocument_createDocumentFragment, ZEND_ACC_PUBLIC)
800 	ZEND_ME(DOMDocument, createElement, arginfo_class_DOMDocument_createElement, ZEND_ACC_PUBLIC)
801 	ZEND_ME(DOMDocument, createElementNS, arginfo_class_DOMDocument_createElementNS, ZEND_ACC_PUBLIC)
802 	ZEND_ME(DOMDocument, createEntityReference, arginfo_class_DOMDocument_createEntityReference, ZEND_ACC_PUBLIC)
803 	ZEND_ME(DOMDocument, createProcessingInstruction, arginfo_class_DOMDocument_createProcessingInstruction, ZEND_ACC_PUBLIC)
804 	ZEND_ME(DOMDocument, createTextNode, arginfo_class_DOMDocument_createTextNode, ZEND_ACC_PUBLIC)
805 	ZEND_ME(DOMDocument, getElementById, arginfo_class_DOMDocument_getElementById, ZEND_ACC_PUBLIC)
806 	ZEND_ME(DOMDocument, getElementsByTagName, arginfo_class_DOMDocument_getElementsByTagName, ZEND_ACC_PUBLIC)
807 	ZEND_ME(DOMDocument, getElementsByTagNameNS, arginfo_class_DOMDocument_getElementsByTagNameNS, ZEND_ACC_PUBLIC)
808 	ZEND_ME(DOMDocument, importNode, arginfo_class_DOMDocument_importNode, ZEND_ACC_PUBLIC)
809 	ZEND_ME(DOMDocument, load, arginfo_class_DOMDocument_load, ZEND_ACC_PUBLIC)
810 	ZEND_ME(DOMDocument, loadXML, arginfo_class_DOMDocument_loadXML, ZEND_ACC_PUBLIC)
811 	ZEND_ME(DOMDocument, normalizeDocument, arginfo_class_DOMDocument_normalizeDocument, ZEND_ACC_PUBLIC)
812 	ZEND_ME(DOMDocument, registerNodeClass, arginfo_class_DOMDocument_registerNodeClass, ZEND_ACC_PUBLIC)
813 	ZEND_ME(DOMDocument, save, arginfo_class_DOMDocument_save, ZEND_ACC_PUBLIC)
814 #if defined(LIBXML_HTML_ENABLED)
815 	ZEND_ME(DOMDocument, loadHTML, arginfo_class_DOMDocument_loadHTML, ZEND_ACC_PUBLIC)
816 #endif
817 #if defined(LIBXML_HTML_ENABLED)
818 	ZEND_ME(DOMDocument, loadHTMLFile, arginfo_class_DOMDocument_loadHTMLFile, ZEND_ACC_PUBLIC)
819 #endif
820 #if defined(LIBXML_HTML_ENABLED)
821 	ZEND_ME(DOMDocument, saveHTML, arginfo_class_DOMDocument_saveHTML, ZEND_ACC_PUBLIC)
822 #endif
823 #if defined(LIBXML_HTML_ENABLED)
824 	ZEND_ME(DOMDocument, saveHTMLFile, arginfo_class_DOMDocument_saveHTMLFile, ZEND_ACC_PUBLIC)
825 #endif
826 	ZEND_ME(DOMDocument, saveXML, arginfo_class_DOMDocument_saveXML, ZEND_ACC_PUBLIC)
827 #if defined(LIBXML_SCHEMAS_ENABLED)
828 	ZEND_ME(DOMDocument, schemaValidate, arginfo_class_DOMDocument_schemaValidate, ZEND_ACC_PUBLIC)
829 #endif
830 #if defined(LIBXML_SCHEMAS_ENABLED)
831 	ZEND_ME(DOMDocument, schemaValidateSource, arginfo_class_DOMDocument_schemaValidateSource, ZEND_ACC_PUBLIC)
832 #endif
833 #if defined(LIBXML_SCHEMAS_ENABLED)
834 	ZEND_ME(DOMDocument, relaxNGValidate, arginfo_class_DOMDocument_relaxNGValidate, ZEND_ACC_PUBLIC)
835 #endif
836 #if defined(LIBXML_SCHEMAS_ENABLED)
837 	ZEND_ME(DOMDocument, relaxNGValidateSource, arginfo_class_DOMDocument_relaxNGValidateSource, ZEND_ACC_PUBLIC)
838 #endif
839 	ZEND_ME(DOMDocument, validate, arginfo_class_DOMDocument_validate, ZEND_ACC_PUBLIC)
840 	ZEND_ME(DOMDocument, xinclude, arginfo_class_DOMDocument_xinclude, ZEND_ACC_PUBLIC)
841 	ZEND_ME(DOMDocument, adoptNode, arginfo_class_DOMDocument_adoptNode, ZEND_ACC_PUBLIC)
842 	ZEND_ME(DOMDocument, append, arginfo_class_DOMDocument_append, ZEND_ACC_PUBLIC)
843 	ZEND_ME(DOMDocument, prepend, arginfo_class_DOMDocument_prepend, ZEND_ACC_PUBLIC)
844 	ZEND_FE_END
845 };
846 
847 
848 static const zend_function_entry class_DOMException_methods[] = {
849 	ZEND_FE_END
850 };
851 
852 
853 static const zend_function_entry class_DOMText_methods[] = {
854 	ZEND_ME(DOMText, __construct, arginfo_class_DOMText___construct, ZEND_ACC_PUBLIC)
855 	ZEND_ME(DOMText, isWhitespaceInElementContent, arginfo_class_DOMText_isWhitespaceInElementContent, ZEND_ACC_PUBLIC)
856 	ZEND_MALIAS(DOMText, isElementContentWhitespace, isWhitespaceInElementContent, arginfo_class_DOMText_isElementContentWhitespace, ZEND_ACC_PUBLIC)
857 	ZEND_ME(DOMText, splitText, arginfo_class_DOMText_splitText, ZEND_ACC_PUBLIC)
858 	ZEND_FE_END
859 };
860 
861 
862 static const zend_function_entry class_DOMNamedNodeMap_methods[] = {
863 	ZEND_ME(DOMNamedNodeMap, getNamedItem, arginfo_class_DOMNamedNodeMap_getNamedItem, ZEND_ACC_PUBLIC)
864 	ZEND_ME(DOMNamedNodeMap, getNamedItemNS, arginfo_class_DOMNamedNodeMap_getNamedItemNS, ZEND_ACC_PUBLIC)
865 	ZEND_ME(DOMNamedNodeMap, item, arginfo_class_DOMNamedNodeMap_item, ZEND_ACC_PUBLIC)
866 	ZEND_ME(DOMNamedNodeMap, count, arginfo_class_DOMNamedNodeMap_count, ZEND_ACC_PUBLIC)
867 	ZEND_ME(DOMNamedNodeMap, getIterator, arginfo_class_DOMNamedNodeMap_getIterator, ZEND_ACC_PUBLIC)
868 	ZEND_FE_END
869 };
870 
871 
872 static const zend_function_entry class_DOMEntity_methods[] = {
873 	ZEND_FE_END
874 };
875 
876 
877 static const zend_function_entry class_DOMEntityReference_methods[] = {
878 	ZEND_ME(DOMEntityReference, __construct, arginfo_class_DOMEntityReference___construct, ZEND_ACC_PUBLIC)
879 	ZEND_FE_END
880 };
881 
882 
883 static const zend_function_entry class_DOMNotation_methods[] = {
884 	ZEND_FE_END
885 };
886 
887 
888 static const zend_function_entry class_DOMProcessingInstruction_methods[] = {
889 	ZEND_ME(DOMProcessingInstruction, __construct, arginfo_class_DOMProcessingInstruction___construct, ZEND_ACC_PUBLIC)
890 	ZEND_FE_END
891 };
892 
893 
894 #if defined(LIBXML_XPATH_ENABLED)
895 static const zend_function_entry class_DOMXPath_methods[] = {
896 	ZEND_ME(DOMXPath, __construct, arginfo_class_DOMXPath___construct, ZEND_ACC_PUBLIC)
897 	ZEND_ME(DOMXPath, evaluate, arginfo_class_DOMXPath_evaluate, ZEND_ACC_PUBLIC)
898 	ZEND_ME(DOMXPath, query, arginfo_class_DOMXPath_query, ZEND_ACC_PUBLIC)
899 	ZEND_ME(DOMXPath, registerNamespace, arginfo_class_DOMXPath_registerNamespace, ZEND_ACC_PUBLIC)
900 	ZEND_ME(DOMXPath, registerPhpFunctions, arginfo_class_DOMXPath_registerPhpFunctions, ZEND_ACC_PUBLIC)
901 	ZEND_FE_END
902 };
903 #endif
904 
register_php_dom_symbols(int module_number)905 static void register_php_dom_symbols(int module_number)
906 {
907 	REGISTER_LONG_CONSTANT("XML_ELEMENT_NODE", XML_ELEMENT_NODE, CONST_PERSISTENT);
908 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_NODE", XML_ATTRIBUTE_NODE, CONST_PERSISTENT);
909 	REGISTER_LONG_CONSTANT("XML_TEXT_NODE", XML_TEXT_NODE, CONST_PERSISTENT);
910 	REGISTER_LONG_CONSTANT("XML_CDATA_SECTION_NODE", XML_CDATA_SECTION_NODE, CONST_PERSISTENT);
911 	REGISTER_LONG_CONSTANT("XML_ENTITY_REF_NODE", XML_ENTITY_REF_NODE, CONST_PERSISTENT);
912 	REGISTER_LONG_CONSTANT("XML_ENTITY_NODE", XML_ENTITY_NODE, CONST_PERSISTENT);
913 	REGISTER_LONG_CONSTANT("XML_PI_NODE", XML_PI_NODE, CONST_PERSISTENT);
914 	REGISTER_LONG_CONSTANT("XML_COMMENT_NODE", XML_COMMENT_NODE, CONST_PERSISTENT);
915 	REGISTER_LONG_CONSTANT("XML_DOCUMENT_NODE", XML_DOCUMENT_NODE, CONST_PERSISTENT);
916 	REGISTER_LONG_CONSTANT("XML_DOCUMENT_TYPE_NODE", XML_DOCUMENT_TYPE_NODE, CONST_PERSISTENT);
917 	REGISTER_LONG_CONSTANT("XML_DOCUMENT_FRAG_NODE", XML_DOCUMENT_FRAG_NODE, CONST_PERSISTENT);
918 	REGISTER_LONG_CONSTANT("XML_NOTATION_NODE", XML_NOTATION_NODE, CONST_PERSISTENT);
919 	REGISTER_LONG_CONSTANT("XML_HTML_DOCUMENT_NODE", XML_HTML_DOCUMENT_NODE, CONST_PERSISTENT);
920 	REGISTER_LONG_CONSTANT("XML_DTD_NODE", XML_DTD_NODE, CONST_PERSISTENT);
921 	REGISTER_LONG_CONSTANT("XML_ELEMENT_DECL_NODE", XML_ELEMENT_DECL, CONST_PERSISTENT);
922 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_DECL_NODE", XML_ATTRIBUTE_DECL, CONST_PERSISTENT);
923 	REGISTER_LONG_CONSTANT("XML_ENTITY_DECL_NODE", XML_ENTITY_DECL, CONST_PERSISTENT);
924 	REGISTER_LONG_CONSTANT("XML_NAMESPACE_DECL_NODE", XML_NAMESPACE_DECL, CONST_PERSISTENT);
925 #if defined(XML_GLOBAL_NAMESPACE)
926 	REGISTER_LONG_CONSTANT("XML_GLOBAL_NAMESPACE", XML_GLOBAL_NAMESPACE, CONST_PERSISTENT);
927 #endif
928 	REGISTER_LONG_CONSTANT("XML_LOCAL_NAMESPACE", XML_LOCAL_NAMESPACE, CONST_PERSISTENT);
929 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_CDATA", XML_ATTRIBUTE_CDATA, CONST_PERSISTENT);
930 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_ID", XML_ATTRIBUTE_ID, CONST_PERSISTENT);
931 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_IDREF", XML_ATTRIBUTE_IDREF, CONST_PERSISTENT);
932 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_IDREFS", XML_ATTRIBUTE_IDREFS, CONST_PERSISTENT);
933 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_ENTITY", XML_ATTRIBUTE_ENTITIES, CONST_PERSISTENT);
934 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_NMTOKEN", XML_ATTRIBUTE_NMTOKEN, CONST_PERSISTENT);
935 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_NMTOKENS", XML_ATTRIBUTE_NMTOKENS, CONST_PERSISTENT);
936 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_ENUMERATION", XML_ATTRIBUTE_ENUMERATION, CONST_PERSISTENT);
937 	REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_NOTATION", XML_ATTRIBUTE_NOTATION, CONST_PERSISTENT);
938 	REGISTER_LONG_CONSTANT("DOM_PHP_ERR", PHP_ERR, CONST_PERSISTENT);
939 	REGISTER_LONG_CONSTANT("DOM_INDEX_SIZE_ERR", INDEX_SIZE_ERR, CONST_PERSISTENT);
940 	REGISTER_LONG_CONSTANT("DOMSTRING_SIZE_ERR", DOMSTRING_SIZE_ERR, CONST_PERSISTENT);
941 	REGISTER_LONG_CONSTANT("DOM_HIERARCHY_REQUEST_ERR", HIERARCHY_REQUEST_ERR, CONST_PERSISTENT);
942 	REGISTER_LONG_CONSTANT("DOM_WRONG_DOCUMENT_ERR", WRONG_DOCUMENT_ERR, CONST_PERSISTENT);
943 	REGISTER_LONG_CONSTANT("DOM_INVALID_CHARACTER_ERR", INVALID_CHARACTER_ERR, CONST_PERSISTENT);
944 	REGISTER_LONG_CONSTANT("DOM_NO_DATA_ALLOWED_ERR", NO_DATA_ALLOWED_ERR, CONST_PERSISTENT);
945 	REGISTER_LONG_CONSTANT("DOM_NO_MODIFICATION_ALLOWED_ERR", NO_MODIFICATION_ALLOWED_ERR, CONST_PERSISTENT);
946 	REGISTER_LONG_CONSTANT("DOM_NOT_FOUND_ERR", NOT_FOUND_ERR, CONST_PERSISTENT);
947 	REGISTER_LONG_CONSTANT("DOM_NOT_SUPPORTED_ERR", NOT_SUPPORTED_ERR, CONST_PERSISTENT);
948 	REGISTER_LONG_CONSTANT("DOM_INUSE_ATTRIBUTE_ERR", INUSE_ATTRIBUTE_ERR, CONST_PERSISTENT);
949 	REGISTER_LONG_CONSTANT("DOM_INVALID_STATE_ERR", INVALID_STATE_ERR, CONST_PERSISTENT);
950 	REGISTER_LONG_CONSTANT("DOM_SYNTAX_ERR", SYNTAX_ERR, CONST_PERSISTENT);
951 	REGISTER_LONG_CONSTANT("DOM_INVALID_MODIFICATION_ERR", INVALID_MODIFICATION_ERR, CONST_PERSISTENT);
952 	REGISTER_LONG_CONSTANT("DOM_NAMESPACE_ERR", NAMESPACE_ERR, CONST_PERSISTENT);
953 	REGISTER_LONG_CONSTANT("DOM_INVALID_ACCESS_ERR", INVALID_ACCESS_ERR, CONST_PERSISTENT);
954 	REGISTER_LONG_CONSTANT("DOM_VALIDATION_ERR", VALIDATION_ERR, CONST_PERSISTENT);
955 }
956 
register_class_DOMDocumentType(zend_class_entry * class_entry_DOMNode)957 static zend_class_entry *register_class_DOMDocumentType(zend_class_entry *class_entry_DOMNode)
958 {
959 	zend_class_entry ce, *class_entry;
960 
961 	INIT_CLASS_ENTRY(ce, "DOMDocumentType", class_DOMDocumentType_methods);
962 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
963 
964 	zval property_name_default_value;
965 	ZVAL_UNDEF(&property_name_default_value);
966 	zend_string *property_name_name = zend_string_init("name", sizeof("name") - 1, 1);
967 	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));
968 	zend_string_release(property_name_name);
969 
970 	zend_string *property_entities_class_DOMNamedNodeMap = zend_string_init("DOMNamedNodeMap", sizeof("DOMNamedNodeMap")-1, 1);
971 	zval property_entities_default_value;
972 	ZVAL_UNDEF(&property_entities_default_value);
973 	zend_string *property_entities_name = zend_string_init("entities", sizeof("entities") - 1, 1);
974 	zend_declare_typed_property(class_entry, property_entities_name, &property_entities_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_entities_class_DOMNamedNodeMap, 0, 0));
975 	zend_string_release(property_entities_name);
976 
977 	zend_string *property_notations_class_DOMNamedNodeMap = zend_string_init("DOMNamedNodeMap", sizeof("DOMNamedNodeMap")-1, 1);
978 	zval property_notations_default_value;
979 	ZVAL_UNDEF(&property_notations_default_value);
980 	zend_string *property_notations_name = zend_string_init("notations", sizeof("notations") - 1, 1);
981 	zend_declare_typed_property(class_entry, property_notations_name, &property_notations_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_notations_class_DOMNamedNodeMap, 0, 0));
982 	zend_string_release(property_notations_name);
983 
984 	zval property_publicId_default_value;
985 	ZVAL_UNDEF(&property_publicId_default_value);
986 	zend_string *property_publicId_name = zend_string_init("publicId", sizeof("publicId") - 1, 1);
987 	zend_declare_typed_property(class_entry, property_publicId_name, &property_publicId_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
988 	zend_string_release(property_publicId_name);
989 
990 	zval property_systemId_default_value;
991 	ZVAL_UNDEF(&property_systemId_default_value);
992 	zend_string *property_systemId_name = zend_string_init("systemId", sizeof("systemId") - 1, 1);
993 	zend_declare_typed_property(class_entry, property_systemId_name, &property_systemId_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
994 	zend_string_release(property_systemId_name);
995 
996 	zval property_internalSubset_default_value;
997 	ZVAL_UNDEF(&property_internalSubset_default_value);
998 	zend_string *property_internalSubset_name = zend_string_init("internalSubset", sizeof("internalSubset") - 1, 1);
999 	zend_declare_typed_property(class_entry, property_internalSubset_name, &property_internalSubset_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1000 	zend_string_release(property_internalSubset_name);
1001 
1002 	return class_entry;
1003 }
1004 
register_class_DOMCdataSection(zend_class_entry * class_entry_DOMText)1005 static zend_class_entry *register_class_DOMCdataSection(zend_class_entry *class_entry_DOMText)
1006 {
1007 	zend_class_entry ce, *class_entry;
1008 
1009 	INIT_CLASS_ENTRY(ce, "DOMCdataSection", class_DOMCdataSection_methods);
1010 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMText);
1011 
1012 	return class_entry;
1013 }
1014 
register_class_DOMComment(zend_class_entry * class_entry_DOMCharacterData)1015 static zend_class_entry *register_class_DOMComment(zend_class_entry *class_entry_DOMCharacterData)
1016 {
1017 	zend_class_entry ce, *class_entry;
1018 
1019 	INIT_CLASS_ENTRY(ce, "DOMComment", class_DOMComment_methods);
1020 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMCharacterData);
1021 
1022 	return class_entry;
1023 }
1024 
register_class_DOMParentNode(void)1025 static zend_class_entry *register_class_DOMParentNode(void)
1026 {
1027 	zend_class_entry ce, *class_entry;
1028 
1029 	INIT_CLASS_ENTRY(ce, "DOMParentNode", class_DOMParentNode_methods);
1030 	class_entry = zend_register_internal_interface(&ce);
1031 
1032 	return class_entry;
1033 }
1034 
register_class_DOMChildNode(void)1035 static zend_class_entry *register_class_DOMChildNode(void)
1036 {
1037 	zend_class_entry ce, *class_entry;
1038 
1039 	INIT_CLASS_ENTRY(ce, "DOMChildNode", class_DOMChildNode_methods);
1040 	class_entry = zend_register_internal_interface(&ce);
1041 
1042 	return class_entry;
1043 }
1044 
register_class_DOMNode(void)1045 static zend_class_entry *register_class_DOMNode(void)
1046 {
1047 	zend_class_entry ce, *class_entry;
1048 
1049 	INIT_CLASS_ENTRY(ce, "DOMNode", class_DOMNode_methods);
1050 	class_entry = zend_register_internal_class_ex(&ce, NULL);
1051 
1052 	zval property_nodeName_default_value;
1053 	ZVAL_UNDEF(&property_nodeName_default_value);
1054 	zend_string *property_nodeName_name = zend_string_init("nodeName", sizeof("nodeName") - 1, 1);
1055 	zend_declare_typed_property(class_entry, property_nodeName_name, &property_nodeName_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1056 	zend_string_release(property_nodeName_name);
1057 
1058 	zval property_nodeValue_default_value;
1059 	ZVAL_UNDEF(&property_nodeValue_default_value);
1060 	zend_string *property_nodeValue_name = zend_string_init("nodeValue", sizeof("nodeValue") - 1, 1);
1061 	zend_declare_typed_property(class_entry, property_nodeValue_name, &property_nodeValue_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1062 	zend_string_release(property_nodeValue_name);
1063 
1064 	zval property_nodeType_default_value;
1065 	ZVAL_UNDEF(&property_nodeType_default_value);
1066 	zend_string *property_nodeType_name = zend_string_init("nodeType", sizeof("nodeType") - 1, 1);
1067 	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));
1068 	zend_string_release(property_nodeType_name);
1069 
1070 	zend_string *property_parentNode_class_DOMNode = zend_string_init("DOMNode", sizeof("DOMNode")-1, 1);
1071 	zval property_parentNode_default_value;
1072 	ZVAL_UNDEF(&property_parentNode_default_value);
1073 	zend_string *property_parentNode_name = zend_string_init("parentNode", sizeof("parentNode") - 1, 1);
1074 	zend_declare_typed_property(class_entry, property_parentNode_name, &property_parentNode_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_parentNode_class_DOMNode, 0, MAY_BE_NULL));
1075 	zend_string_release(property_parentNode_name);
1076 
1077 	zend_string *property_childNodes_class_DOMNodeList = zend_string_init("DOMNodeList", sizeof("DOMNodeList")-1, 1);
1078 	zval property_childNodes_default_value;
1079 	ZVAL_UNDEF(&property_childNodes_default_value);
1080 	zend_string *property_childNodes_name = zend_string_init("childNodes", sizeof("childNodes") - 1, 1);
1081 	zend_declare_typed_property(class_entry, property_childNodes_name, &property_childNodes_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_childNodes_class_DOMNodeList, 0, 0));
1082 	zend_string_release(property_childNodes_name);
1083 
1084 	zend_string *property_firstChild_class_DOMNode = zend_string_init("DOMNode", sizeof("DOMNode")-1, 1);
1085 	zval property_firstChild_default_value;
1086 	ZVAL_UNDEF(&property_firstChild_default_value);
1087 	zend_string *property_firstChild_name = zend_string_init("firstChild", sizeof("firstChild") - 1, 1);
1088 	zend_declare_typed_property(class_entry, property_firstChild_name, &property_firstChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstChild_class_DOMNode, 0, MAY_BE_NULL));
1089 	zend_string_release(property_firstChild_name);
1090 
1091 	zend_string *property_lastChild_class_DOMNode = zend_string_init("DOMNode", sizeof("DOMNode")-1, 1);
1092 	zval property_lastChild_default_value;
1093 	ZVAL_UNDEF(&property_lastChild_default_value);
1094 	zend_string *property_lastChild_name = zend_string_init("lastChild", sizeof("lastChild") - 1, 1);
1095 	zend_declare_typed_property(class_entry, property_lastChild_name, &property_lastChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastChild_class_DOMNode, 0, MAY_BE_NULL));
1096 	zend_string_release(property_lastChild_name);
1097 
1098 	zend_string *property_previousSibling_class_DOMNode = zend_string_init("DOMNode", sizeof("DOMNode")-1, 1);
1099 	zval property_previousSibling_default_value;
1100 	ZVAL_UNDEF(&property_previousSibling_default_value);
1101 	zend_string *property_previousSibling_name = zend_string_init("previousSibling", sizeof("previousSibling") - 1, 1);
1102 	zend_declare_typed_property(class_entry, property_previousSibling_name, &property_previousSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousSibling_class_DOMNode, 0, MAY_BE_NULL));
1103 	zend_string_release(property_previousSibling_name);
1104 
1105 	zend_string *property_nextSibling_class_DOMNode = zend_string_init("DOMNode", sizeof("DOMNode")-1, 1);
1106 	zval property_nextSibling_default_value;
1107 	ZVAL_UNDEF(&property_nextSibling_default_value);
1108 	zend_string *property_nextSibling_name = zend_string_init("nextSibling", sizeof("nextSibling") - 1, 1);
1109 	zend_declare_typed_property(class_entry, property_nextSibling_name, &property_nextSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextSibling_class_DOMNode, 0, MAY_BE_NULL));
1110 	zend_string_release(property_nextSibling_name);
1111 
1112 	zend_string *property_attributes_class_DOMNamedNodeMap = zend_string_init("DOMNamedNodeMap", sizeof("DOMNamedNodeMap")-1, 1);
1113 	zval property_attributes_default_value;
1114 	ZVAL_UNDEF(&property_attributes_default_value);
1115 	zend_string *property_attributes_name = zend_string_init("attributes", sizeof("attributes") - 1, 1);
1116 	zend_declare_typed_property(class_entry, property_attributes_name, &property_attributes_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_attributes_class_DOMNamedNodeMap, 0, MAY_BE_NULL));
1117 	zend_string_release(property_attributes_name);
1118 
1119 	zend_string *property_ownerDocument_class_DOMDocument = zend_string_init("DOMDocument", sizeof("DOMDocument")-1, 1);
1120 	zval property_ownerDocument_default_value;
1121 	ZVAL_UNDEF(&property_ownerDocument_default_value);
1122 	zend_string *property_ownerDocument_name = zend_string_init("ownerDocument", sizeof("ownerDocument") - 1, 1);
1123 	zend_declare_typed_property(class_entry, property_ownerDocument_name, &property_ownerDocument_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_ownerDocument_class_DOMDocument, 0, MAY_BE_NULL));
1124 	zend_string_release(property_ownerDocument_name);
1125 
1126 	zval property_namespaceURI_default_value;
1127 	ZVAL_UNDEF(&property_namespaceURI_default_value);
1128 	zend_string *property_namespaceURI_name = zend_string_init("namespaceURI", sizeof("namespaceURI") - 1, 1);
1129 	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|MAY_BE_NULL));
1130 	zend_string_release(property_namespaceURI_name);
1131 
1132 	zval property_prefix_default_value;
1133 	ZVAL_UNDEF(&property_prefix_default_value);
1134 	zend_string *property_prefix_name = zend_string_init("prefix", sizeof("prefix") - 1, 1);
1135 	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));
1136 	zend_string_release(property_prefix_name);
1137 
1138 	zval property_localName_default_value;
1139 	ZVAL_UNDEF(&property_localName_default_value);
1140 	zend_string *property_localName_name = zend_string_init("localName", sizeof("localName") - 1, 1);
1141 	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|MAY_BE_NULL));
1142 	zend_string_release(property_localName_name);
1143 
1144 	zval property_baseURI_default_value;
1145 	ZVAL_UNDEF(&property_baseURI_default_value);
1146 	zend_string *property_baseURI_name = zend_string_init("baseURI", sizeof("baseURI") - 1, 1);
1147 	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|MAY_BE_NULL));
1148 	zend_string_release(property_baseURI_name);
1149 
1150 	zval property_textContent_default_value;
1151 	ZVAL_UNDEF(&property_textContent_default_value);
1152 	zend_string *property_textContent_name = zend_string_init("textContent", sizeof("textContent") - 1, 1);
1153 	zend_declare_typed_property(class_entry, property_textContent_name, &property_textContent_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1154 	zend_string_release(property_textContent_name);
1155 
1156 	return class_entry;
1157 }
1158 
register_class_DOMNameSpaceNode(void)1159 static zend_class_entry *register_class_DOMNameSpaceNode(void)
1160 {
1161 	zend_class_entry ce, *class_entry;
1162 
1163 	INIT_CLASS_ENTRY(ce, "DOMNameSpaceNode", class_DOMNameSpaceNode_methods);
1164 	class_entry = zend_register_internal_class_ex(&ce, NULL);
1165 
1166 	zval property_nodeName_default_value;
1167 	ZVAL_UNDEF(&property_nodeName_default_value);
1168 	zend_string *property_nodeName_name = zend_string_init("nodeName", sizeof("nodeName") - 1, 1);
1169 	zend_declare_typed_property(class_entry, property_nodeName_name, &property_nodeName_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1170 	zend_string_release(property_nodeName_name);
1171 
1172 	zval property_nodeValue_default_value;
1173 	ZVAL_UNDEF(&property_nodeValue_default_value);
1174 	zend_string *property_nodeValue_name = zend_string_init("nodeValue", sizeof("nodeValue") - 1, 1);
1175 	zend_declare_typed_property(class_entry, property_nodeValue_name, &property_nodeValue_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1176 	zend_string_release(property_nodeValue_name);
1177 
1178 	zval property_nodeType_default_value;
1179 	ZVAL_UNDEF(&property_nodeType_default_value);
1180 	zend_string *property_nodeType_name = zend_string_init("nodeType", sizeof("nodeType") - 1, 1);
1181 	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));
1182 	zend_string_release(property_nodeType_name);
1183 
1184 	zval property_prefix_default_value;
1185 	ZVAL_UNDEF(&property_prefix_default_value);
1186 	zend_string *property_prefix_name = zend_string_init("prefix", sizeof("prefix") - 1, 1);
1187 	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));
1188 	zend_string_release(property_prefix_name);
1189 
1190 	zval property_localName_default_value;
1191 	ZVAL_UNDEF(&property_localName_default_value);
1192 	zend_string *property_localName_name = zend_string_init("localName", sizeof("localName") - 1, 1);
1193 	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|MAY_BE_NULL));
1194 	zend_string_release(property_localName_name);
1195 
1196 	zval property_namespaceURI_default_value;
1197 	ZVAL_UNDEF(&property_namespaceURI_default_value);
1198 	zend_string *property_namespaceURI_name = zend_string_init("namespaceURI", sizeof("namespaceURI") - 1, 1);
1199 	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|MAY_BE_NULL));
1200 	zend_string_release(property_namespaceURI_name);
1201 
1202 	zend_string *property_ownerDocument_class_DOMDocument = zend_string_init("DOMDocument", sizeof("DOMDocument")-1, 1);
1203 	zval property_ownerDocument_default_value;
1204 	ZVAL_UNDEF(&property_ownerDocument_default_value);
1205 	zend_string *property_ownerDocument_name = zend_string_init("ownerDocument", sizeof("ownerDocument") - 1, 1);
1206 	zend_declare_typed_property(class_entry, property_ownerDocument_name, &property_ownerDocument_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_ownerDocument_class_DOMDocument, 0, MAY_BE_NULL));
1207 	zend_string_release(property_ownerDocument_name);
1208 
1209 	zend_string *property_parentNode_class_DOMNode = zend_string_init("DOMNode", sizeof("DOMNode")-1, 1);
1210 	zval property_parentNode_default_value;
1211 	ZVAL_UNDEF(&property_parentNode_default_value);
1212 	zend_string *property_parentNode_name = zend_string_init("parentNode", sizeof("parentNode") - 1, 1);
1213 	zend_declare_typed_property(class_entry, property_parentNode_name, &property_parentNode_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_parentNode_class_DOMNode, 0, MAY_BE_NULL));
1214 	zend_string_release(property_parentNode_name);
1215 
1216 	return class_entry;
1217 }
1218 
register_class_DOMImplementation(void)1219 static zend_class_entry *register_class_DOMImplementation(void)
1220 {
1221 	zend_class_entry ce, *class_entry;
1222 
1223 	INIT_CLASS_ENTRY(ce, "DOMImplementation", class_DOMImplementation_methods);
1224 	class_entry = zend_register_internal_class_ex(&ce, NULL);
1225 
1226 	return class_entry;
1227 }
1228 
register_class_DOMDocumentFragment(zend_class_entry * class_entry_DOMNode,zend_class_entry * class_entry_DOMParentNode)1229 static zend_class_entry *register_class_DOMDocumentFragment(zend_class_entry *class_entry_DOMNode, zend_class_entry *class_entry_DOMParentNode)
1230 {
1231 	zend_class_entry ce, *class_entry;
1232 
1233 	INIT_CLASS_ENTRY(ce, "DOMDocumentFragment", class_DOMDocumentFragment_methods);
1234 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1235 	zend_class_implements(class_entry, 1, class_entry_DOMParentNode);
1236 
1237 	zend_string *property_firstElementChild_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1238 	zval property_firstElementChild_default_value;
1239 	ZVAL_UNDEF(&property_firstElementChild_default_value);
1240 	zend_string *property_firstElementChild_name = zend_string_init("firstElementChild", sizeof("firstElementChild") - 1, 1);
1241 	zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_DOMElement, 0, MAY_BE_NULL));
1242 	zend_string_release(property_firstElementChild_name);
1243 
1244 	zend_string *property_lastElementChild_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1245 	zval property_lastElementChild_default_value;
1246 	ZVAL_UNDEF(&property_lastElementChild_default_value);
1247 	zend_string *property_lastElementChild_name = zend_string_init("lastElementChild", sizeof("lastElementChild") - 1, 1);
1248 	zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_DOMElement, 0, MAY_BE_NULL));
1249 	zend_string_release(property_lastElementChild_name);
1250 
1251 	zval property_childElementCount_default_value;
1252 	ZVAL_UNDEF(&property_childElementCount_default_value);
1253 	zend_string *property_childElementCount_name = zend_string_init("childElementCount", sizeof("childElementCount") - 1, 1);
1254 	zend_declare_typed_property(class_entry, property_childElementCount_name, &property_childElementCount_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1255 	zend_string_release(property_childElementCount_name);
1256 
1257 	return class_entry;
1258 }
1259 
register_class_DOMNodeList(zend_class_entry * class_entry_IteratorAggregate,zend_class_entry * class_entry_Countable)1260 static zend_class_entry *register_class_DOMNodeList(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable)
1261 {
1262 	zend_class_entry ce, *class_entry;
1263 
1264 	INIT_CLASS_ENTRY(ce, "DOMNodeList", class_DOMNodeList_methods);
1265 	class_entry = zend_register_internal_class_ex(&ce, NULL);
1266 	zend_class_implements(class_entry, 2, class_entry_IteratorAggregate, class_entry_Countable);
1267 
1268 	zval property_length_default_value;
1269 	ZVAL_UNDEF(&property_length_default_value);
1270 	zend_string *property_length_name = zend_string_init("length", sizeof("length") - 1, 1);
1271 	zend_declare_typed_property(class_entry, property_length_name, &property_length_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1272 	zend_string_release(property_length_name);
1273 
1274 	return class_entry;
1275 }
1276 
register_class_DOMCharacterData(zend_class_entry * class_entry_DOMNode,zend_class_entry * class_entry_DOMChildNode)1277 static zend_class_entry *register_class_DOMCharacterData(zend_class_entry *class_entry_DOMNode, zend_class_entry *class_entry_DOMChildNode)
1278 {
1279 	zend_class_entry ce, *class_entry;
1280 
1281 	INIT_CLASS_ENTRY(ce, "DOMCharacterData", class_DOMCharacterData_methods);
1282 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1283 	zend_class_implements(class_entry, 1, class_entry_DOMChildNode);
1284 
1285 	zval property_data_default_value;
1286 	ZVAL_UNDEF(&property_data_default_value);
1287 	zend_string *property_data_name = zend_string_init("data", sizeof("data") - 1, 1);
1288 	zend_declare_typed_property(class_entry, property_data_name, &property_data_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1289 	zend_string_release(property_data_name);
1290 
1291 	zval property_length_default_value;
1292 	ZVAL_UNDEF(&property_length_default_value);
1293 	zend_string *property_length_name = zend_string_init("length", sizeof("length") - 1, 1);
1294 	zend_declare_typed_property(class_entry, property_length_name, &property_length_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1295 	zend_string_release(property_length_name);
1296 
1297 	zend_string *property_previousElementSibling_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1298 	zval property_previousElementSibling_default_value;
1299 	ZVAL_UNDEF(&property_previousElementSibling_default_value);
1300 	zend_string *property_previousElementSibling_name = zend_string_init("previousElementSibling", sizeof("previousElementSibling") - 1, 1);
1301 	zend_declare_typed_property(class_entry, property_previousElementSibling_name, &property_previousElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousElementSibling_class_DOMElement, 0, MAY_BE_NULL));
1302 	zend_string_release(property_previousElementSibling_name);
1303 
1304 	zend_string *property_nextElementSibling_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1305 	zval property_nextElementSibling_default_value;
1306 	ZVAL_UNDEF(&property_nextElementSibling_default_value);
1307 	zend_string *property_nextElementSibling_name = zend_string_init("nextElementSibling", sizeof("nextElementSibling") - 1, 1);
1308 	zend_declare_typed_property(class_entry, property_nextElementSibling_name, &property_nextElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextElementSibling_class_DOMElement, 0, MAY_BE_NULL));
1309 	zend_string_release(property_nextElementSibling_name);
1310 
1311 	return class_entry;
1312 }
1313 
register_class_DOMAttr(zend_class_entry * class_entry_DOMNode)1314 static zend_class_entry *register_class_DOMAttr(zend_class_entry *class_entry_DOMNode)
1315 {
1316 	zend_class_entry ce, *class_entry;
1317 
1318 	INIT_CLASS_ENTRY(ce, "DOMAttr", class_DOMAttr_methods);
1319 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1320 
1321 	zval property_name_default_value;
1322 	ZVAL_UNDEF(&property_name_default_value);
1323 	zend_string *property_name_name = zend_string_init("name", sizeof("name") - 1, 1);
1324 	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));
1325 	zend_string_release(property_name_name);
1326 
1327 	zval property_specified_default_value;
1328 	ZVAL_TRUE(&property_specified_default_value);
1329 	zend_string *property_specified_name = zend_string_init("specified", sizeof("specified") - 1, 1);
1330 	zend_declare_typed_property(class_entry, property_specified_name, &property_specified_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1331 	zend_string_release(property_specified_name);
1332 
1333 	zval property_value_default_value;
1334 	ZVAL_UNDEF(&property_value_default_value);
1335 	zend_string *property_value_name = zend_string_init("value", sizeof("value") - 1, 1);
1336 	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));
1337 	zend_string_release(property_value_name);
1338 
1339 	zend_string *property_ownerElement_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1340 	zval property_ownerElement_default_value;
1341 	ZVAL_UNDEF(&property_ownerElement_default_value);
1342 	zend_string *property_ownerElement_name = zend_string_init("ownerElement", sizeof("ownerElement") - 1, 1);
1343 	zend_declare_typed_property(class_entry, property_ownerElement_name, &property_ownerElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_ownerElement_class_DOMElement, 0, MAY_BE_NULL));
1344 	zend_string_release(property_ownerElement_name);
1345 
1346 	zval property_schemaTypeInfo_default_value;
1347 	ZVAL_NULL(&property_schemaTypeInfo_default_value);
1348 	zend_string *property_schemaTypeInfo_name = zend_string_init("schemaTypeInfo", sizeof("schemaTypeInfo") - 1, 1);
1349 	zend_declare_typed_property(class_entry, property_schemaTypeInfo_name, &property_schemaTypeInfo_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1350 	zend_string_release(property_schemaTypeInfo_name);
1351 
1352 	return class_entry;
1353 }
1354 
register_class_DOMElement(zend_class_entry * class_entry_DOMNode,zend_class_entry * class_entry_DOMParentNode,zend_class_entry * class_entry_DOMChildNode)1355 static zend_class_entry *register_class_DOMElement(zend_class_entry *class_entry_DOMNode, zend_class_entry *class_entry_DOMParentNode, zend_class_entry *class_entry_DOMChildNode)
1356 {
1357 	zend_class_entry ce, *class_entry;
1358 
1359 	INIT_CLASS_ENTRY(ce, "DOMElement", class_DOMElement_methods);
1360 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1361 	zend_class_implements(class_entry, 2, class_entry_DOMParentNode, class_entry_DOMChildNode);
1362 
1363 	zval property_tagName_default_value;
1364 	ZVAL_UNDEF(&property_tagName_default_value);
1365 	zend_string *property_tagName_name = zend_string_init("tagName", sizeof("tagName") - 1, 1);
1366 	zend_declare_typed_property(class_entry, property_tagName_name, &property_tagName_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1367 	zend_string_release(property_tagName_name);
1368 
1369 	zval property_schemaTypeInfo_default_value;
1370 	ZVAL_NULL(&property_schemaTypeInfo_default_value);
1371 	zend_string *property_schemaTypeInfo_name = zend_string_init("schemaTypeInfo", sizeof("schemaTypeInfo") - 1, 1);
1372 	zend_declare_typed_property(class_entry, property_schemaTypeInfo_name, &property_schemaTypeInfo_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1373 	zend_string_release(property_schemaTypeInfo_name);
1374 
1375 	zend_string *property_firstElementChild_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1376 	zval property_firstElementChild_default_value;
1377 	ZVAL_UNDEF(&property_firstElementChild_default_value);
1378 	zend_string *property_firstElementChild_name = zend_string_init("firstElementChild", sizeof("firstElementChild") - 1, 1);
1379 	zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_DOMElement, 0, MAY_BE_NULL));
1380 	zend_string_release(property_firstElementChild_name);
1381 
1382 	zend_string *property_lastElementChild_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1383 	zval property_lastElementChild_default_value;
1384 	ZVAL_UNDEF(&property_lastElementChild_default_value);
1385 	zend_string *property_lastElementChild_name = zend_string_init("lastElementChild", sizeof("lastElementChild") - 1, 1);
1386 	zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_DOMElement, 0, MAY_BE_NULL));
1387 	zend_string_release(property_lastElementChild_name);
1388 
1389 	zval property_childElementCount_default_value;
1390 	ZVAL_UNDEF(&property_childElementCount_default_value);
1391 	zend_string *property_childElementCount_name = zend_string_init("childElementCount", sizeof("childElementCount") - 1, 1);
1392 	zend_declare_typed_property(class_entry, property_childElementCount_name, &property_childElementCount_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1393 	zend_string_release(property_childElementCount_name);
1394 
1395 	zend_string *property_previousElementSibling_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1396 	zval property_previousElementSibling_default_value;
1397 	ZVAL_UNDEF(&property_previousElementSibling_default_value);
1398 	zend_string *property_previousElementSibling_name = zend_string_init("previousElementSibling", sizeof("previousElementSibling") - 1, 1);
1399 	zend_declare_typed_property(class_entry, property_previousElementSibling_name, &property_previousElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousElementSibling_class_DOMElement, 0, MAY_BE_NULL));
1400 	zend_string_release(property_previousElementSibling_name);
1401 
1402 	zend_string *property_nextElementSibling_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1403 	zval property_nextElementSibling_default_value;
1404 	ZVAL_UNDEF(&property_nextElementSibling_default_value);
1405 	zend_string *property_nextElementSibling_name = zend_string_init("nextElementSibling", sizeof("nextElementSibling") - 1, 1);
1406 	zend_declare_typed_property(class_entry, property_nextElementSibling_name, &property_nextElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextElementSibling_class_DOMElement, 0, MAY_BE_NULL));
1407 	zend_string_release(property_nextElementSibling_name);
1408 
1409 	return class_entry;
1410 }
1411 
register_class_DOMDocument(zend_class_entry * class_entry_DOMNode,zend_class_entry * class_entry_DOMParentNode)1412 static zend_class_entry *register_class_DOMDocument(zend_class_entry *class_entry_DOMNode, zend_class_entry *class_entry_DOMParentNode)
1413 {
1414 	zend_class_entry ce, *class_entry;
1415 
1416 	INIT_CLASS_ENTRY(ce, "DOMDocument", class_DOMDocument_methods);
1417 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1418 	zend_class_implements(class_entry, 1, class_entry_DOMParentNode);
1419 
1420 	zend_string *property_doctype_class_DOMDocumentType = zend_string_init("DOMDocumentType", sizeof("DOMDocumentType")-1, 1);
1421 	zval property_doctype_default_value;
1422 	ZVAL_UNDEF(&property_doctype_default_value);
1423 	zend_string *property_doctype_name = zend_string_init("doctype", sizeof("doctype") - 1, 1);
1424 	zend_declare_typed_property(class_entry, property_doctype_name, &property_doctype_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_doctype_class_DOMDocumentType, 0, MAY_BE_NULL));
1425 	zend_string_release(property_doctype_name);
1426 
1427 	zend_string *property_implementation_class_DOMImplementation = zend_string_init("DOMImplementation", sizeof("DOMImplementation")-1, 1);
1428 	zval property_implementation_default_value;
1429 	ZVAL_UNDEF(&property_implementation_default_value);
1430 	zend_string *property_implementation_name = zend_string_init("implementation", sizeof("implementation") - 1, 1);
1431 	zend_declare_typed_property(class_entry, property_implementation_name, &property_implementation_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_implementation_class_DOMImplementation, 0, 0));
1432 	zend_string_release(property_implementation_name);
1433 
1434 	zend_string *property_documentElement_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1435 	zval property_documentElement_default_value;
1436 	ZVAL_UNDEF(&property_documentElement_default_value);
1437 	zend_string *property_documentElement_name = zend_string_init("documentElement", sizeof("documentElement") - 1, 1);
1438 	zend_declare_typed_property(class_entry, property_documentElement_name, &property_documentElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_documentElement_class_DOMElement, 0, MAY_BE_NULL));
1439 	zend_string_release(property_documentElement_name);
1440 
1441 	zval property_actualEncoding_default_value;
1442 	ZVAL_UNDEF(&property_actualEncoding_default_value);
1443 	zend_string *property_actualEncoding_name = zend_string_init("actualEncoding", sizeof("actualEncoding") - 1, 1);
1444 	zend_declare_typed_property(class_entry, property_actualEncoding_name, &property_actualEncoding_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1445 	zend_string_release(property_actualEncoding_name);
1446 
1447 	zval property_encoding_default_value;
1448 	ZVAL_UNDEF(&property_encoding_default_value);
1449 	zend_string *property_encoding_name = zend_string_init("encoding", sizeof("encoding") - 1, 1);
1450 	zend_declare_typed_property(class_entry, property_encoding_name, &property_encoding_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1451 	zend_string_release(property_encoding_name);
1452 
1453 	zval property_xmlEncoding_default_value;
1454 	ZVAL_UNDEF(&property_xmlEncoding_default_value);
1455 	zend_string *property_xmlEncoding_name = zend_string_init("xmlEncoding", sizeof("xmlEncoding") - 1, 1);
1456 	zend_declare_typed_property(class_entry, property_xmlEncoding_name, &property_xmlEncoding_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1457 	zend_string_release(property_xmlEncoding_name);
1458 
1459 	zval property_standalone_default_value;
1460 	ZVAL_UNDEF(&property_standalone_default_value);
1461 	zend_string *property_standalone_name = zend_string_init("standalone", sizeof("standalone") - 1, 1);
1462 	zend_declare_typed_property(class_entry, property_standalone_name, &property_standalone_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1463 	zend_string_release(property_standalone_name);
1464 
1465 	zval property_xmlStandalone_default_value;
1466 	ZVAL_UNDEF(&property_xmlStandalone_default_value);
1467 	zend_string *property_xmlStandalone_name = zend_string_init("xmlStandalone", sizeof("xmlStandalone") - 1, 1);
1468 	zend_declare_typed_property(class_entry, property_xmlStandalone_name, &property_xmlStandalone_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1469 	zend_string_release(property_xmlStandalone_name);
1470 
1471 	zval property_version_default_value;
1472 	ZVAL_UNDEF(&property_version_default_value);
1473 	zend_string *property_version_name = zend_string_init("version", sizeof("version") - 1, 1);
1474 	zend_declare_typed_property(class_entry, property_version_name, &property_version_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1475 	zend_string_release(property_version_name);
1476 
1477 	zval property_xmlVersion_default_value;
1478 	ZVAL_UNDEF(&property_xmlVersion_default_value);
1479 	zend_string *property_xmlVersion_name = zend_string_init("xmlVersion", sizeof("xmlVersion") - 1, 1);
1480 	zend_declare_typed_property(class_entry, property_xmlVersion_name, &property_xmlVersion_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1481 	zend_string_release(property_xmlVersion_name);
1482 
1483 	zval property_strictErrorChecking_default_value;
1484 	ZVAL_UNDEF(&property_strictErrorChecking_default_value);
1485 	zend_string *property_strictErrorChecking_name = zend_string_init("strictErrorChecking", sizeof("strictErrorChecking") - 1, 1);
1486 	zend_declare_typed_property(class_entry, property_strictErrorChecking_name, &property_strictErrorChecking_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1487 	zend_string_release(property_strictErrorChecking_name);
1488 
1489 	zval property_documentURI_default_value;
1490 	ZVAL_UNDEF(&property_documentURI_default_value);
1491 	zend_string *property_documentURI_name = zend_string_init("documentURI", sizeof("documentURI") - 1, 1);
1492 	zend_declare_typed_property(class_entry, property_documentURI_name, &property_documentURI_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1493 	zend_string_release(property_documentURI_name);
1494 
1495 	zval property_config_default_value;
1496 	ZVAL_UNDEF(&property_config_default_value);
1497 	zend_string *property_config_name = zend_string_init("config", sizeof("config") - 1, 1);
1498 	zend_declare_typed_property(class_entry, property_config_name, &property_config_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1499 	zend_string_release(property_config_name);
1500 
1501 	zval property_formatOutput_default_value;
1502 	ZVAL_UNDEF(&property_formatOutput_default_value);
1503 	zend_string *property_formatOutput_name = zend_string_init("formatOutput", sizeof("formatOutput") - 1, 1);
1504 	zend_declare_typed_property(class_entry, property_formatOutput_name, &property_formatOutput_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1505 	zend_string_release(property_formatOutput_name);
1506 
1507 	zval property_validateOnParse_default_value;
1508 	ZVAL_UNDEF(&property_validateOnParse_default_value);
1509 	zend_string *property_validateOnParse_name = zend_string_init("validateOnParse", sizeof("validateOnParse") - 1, 1);
1510 	zend_declare_typed_property(class_entry, property_validateOnParse_name, &property_validateOnParse_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1511 	zend_string_release(property_validateOnParse_name);
1512 
1513 	zval property_resolveExternals_default_value;
1514 	ZVAL_UNDEF(&property_resolveExternals_default_value);
1515 	zend_string *property_resolveExternals_name = zend_string_init("resolveExternals", sizeof("resolveExternals") - 1, 1);
1516 	zend_declare_typed_property(class_entry, property_resolveExternals_name, &property_resolveExternals_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1517 	zend_string_release(property_resolveExternals_name);
1518 
1519 	zval property_preserveWhiteSpace_default_value;
1520 	ZVAL_UNDEF(&property_preserveWhiteSpace_default_value);
1521 	zend_string *property_preserveWhiteSpace_name = zend_string_init("preserveWhiteSpace", sizeof("preserveWhiteSpace") - 1, 1);
1522 	zend_declare_typed_property(class_entry, property_preserveWhiteSpace_name, &property_preserveWhiteSpace_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1523 	zend_string_release(property_preserveWhiteSpace_name);
1524 
1525 	zval property_recover_default_value;
1526 	ZVAL_UNDEF(&property_recover_default_value);
1527 	zend_string *property_recover_name = zend_string_init("recover", sizeof("recover") - 1, 1);
1528 	zend_declare_typed_property(class_entry, property_recover_name, &property_recover_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1529 	zend_string_release(property_recover_name);
1530 
1531 	zval property_substituteEntities_default_value;
1532 	ZVAL_UNDEF(&property_substituteEntities_default_value);
1533 	zend_string *property_substituteEntities_name = zend_string_init("substituteEntities", sizeof("substituteEntities") - 1, 1);
1534 	zend_declare_typed_property(class_entry, property_substituteEntities_name, &property_substituteEntities_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1535 	zend_string_release(property_substituteEntities_name);
1536 
1537 	zend_string *property_firstElementChild_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1538 	zval property_firstElementChild_default_value;
1539 	ZVAL_UNDEF(&property_firstElementChild_default_value);
1540 	zend_string *property_firstElementChild_name = zend_string_init("firstElementChild", sizeof("firstElementChild") - 1, 1);
1541 	zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_DOMElement, 0, MAY_BE_NULL));
1542 	zend_string_release(property_firstElementChild_name);
1543 
1544 	zend_string *property_lastElementChild_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
1545 	zval property_lastElementChild_default_value;
1546 	ZVAL_UNDEF(&property_lastElementChild_default_value);
1547 	zend_string *property_lastElementChild_name = zend_string_init("lastElementChild", sizeof("lastElementChild") - 1, 1);
1548 	zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_DOMElement, 0, MAY_BE_NULL));
1549 	zend_string_release(property_lastElementChild_name);
1550 
1551 	zval property_childElementCount_default_value;
1552 	ZVAL_UNDEF(&property_childElementCount_default_value);
1553 	zend_string *property_childElementCount_name = zend_string_init("childElementCount", sizeof("childElementCount") - 1, 1);
1554 	zend_declare_typed_property(class_entry, property_childElementCount_name, &property_childElementCount_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1555 	zend_string_release(property_childElementCount_name);
1556 
1557 	return class_entry;
1558 }
1559 
register_class_DOMException(zend_class_entry * class_entry_Exception)1560 static zend_class_entry *register_class_DOMException(zend_class_entry *class_entry_Exception)
1561 {
1562 	zend_class_entry ce, *class_entry;
1563 
1564 	INIT_CLASS_ENTRY(ce, "DOMException", class_DOMException_methods);
1565 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception);
1566 	class_entry->ce_flags |= ZEND_ACC_FINAL;
1567 
1568 	zval property_code_default_value;
1569 	ZVAL_LONG(&property_code_default_value, 0);
1570 	zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
1571 	zend_declare_property_ex(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PUBLIC, NULL);
1572 	zend_string_release(property_code_name);
1573 
1574 	return class_entry;
1575 }
1576 
register_class_DOMText(zend_class_entry * class_entry_DOMCharacterData)1577 static zend_class_entry *register_class_DOMText(zend_class_entry *class_entry_DOMCharacterData)
1578 {
1579 	zend_class_entry ce, *class_entry;
1580 
1581 	INIT_CLASS_ENTRY(ce, "DOMText", class_DOMText_methods);
1582 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMCharacterData);
1583 
1584 	zval property_wholeText_default_value;
1585 	ZVAL_UNDEF(&property_wholeText_default_value);
1586 	zend_string *property_wholeText_name = zend_string_init("wholeText", sizeof("wholeText") - 1, 1);
1587 	zend_declare_typed_property(class_entry, property_wholeText_name, &property_wholeText_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1588 	zend_string_release(property_wholeText_name);
1589 
1590 	return class_entry;
1591 }
1592 
register_class_DOMNamedNodeMap(zend_class_entry * class_entry_IteratorAggregate,zend_class_entry * class_entry_Countable)1593 static zend_class_entry *register_class_DOMNamedNodeMap(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable)
1594 {
1595 	zend_class_entry ce, *class_entry;
1596 
1597 	INIT_CLASS_ENTRY(ce, "DOMNamedNodeMap", class_DOMNamedNodeMap_methods);
1598 	class_entry = zend_register_internal_class_ex(&ce, NULL);
1599 	zend_class_implements(class_entry, 2, class_entry_IteratorAggregate, class_entry_Countable);
1600 
1601 	zval property_length_default_value;
1602 	ZVAL_UNDEF(&property_length_default_value);
1603 	zend_string *property_length_name = zend_string_init("length", sizeof("length") - 1, 1);
1604 	zend_declare_typed_property(class_entry, property_length_name, &property_length_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
1605 	zend_string_release(property_length_name);
1606 
1607 	return class_entry;
1608 }
1609 
register_class_DOMEntity(zend_class_entry * class_entry_DOMNode)1610 static zend_class_entry *register_class_DOMEntity(zend_class_entry *class_entry_DOMNode)
1611 {
1612 	zend_class_entry ce, *class_entry;
1613 
1614 	INIT_CLASS_ENTRY(ce, "DOMEntity", class_DOMEntity_methods);
1615 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1616 
1617 	zval property_publicId_default_value;
1618 	ZVAL_UNDEF(&property_publicId_default_value);
1619 	zend_string *property_publicId_name = zend_string_init("publicId", sizeof("publicId") - 1, 1);
1620 	zend_declare_typed_property(class_entry, property_publicId_name, &property_publicId_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1621 	zend_string_release(property_publicId_name);
1622 
1623 	zval property_systemId_default_value;
1624 	ZVAL_UNDEF(&property_systemId_default_value);
1625 	zend_string *property_systemId_name = zend_string_init("systemId", sizeof("systemId") - 1, 1);
1626 	zend_declare_typed_property(class_entry, property_systemId_name, &property_systemId_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1627 	zend_string_release(property_systemId_name);
1628 
1629 	zval property_notationName_default_value;
1630 	ZVAL_UNDEF(&property_notationName_default_value);
1631 	zend_string *property_notationName_name = zend_string_init("notationName", sizeof("notationName") - 1, 1);
1632 	zend_declare_typed_property(class_entry, property_notationName_name, &property_notationName_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1633 	zend_string_release(property_notationName_name);
1634 
1635 	zval property_actualEncoding_default_value;
1636 	ZVAL_NULL(&property_actualEncoding_default_value);
1637 	zend_string *property_actualEncoding_name = zend_string_init("actualEncoding", sizeof("actualEncoding") - 1, 1);
1638 	zend_declare_typed_property(class_entry, property_actualEncoding_name, &property_actualEncoding_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1639 	zend_string_release(property_actualEncoding_name);
1640 
1641 	zval property_encoding_default_value;
1642 	ZVAL_NULL(&property_encoding_default_value);
1643 	zend_string *property_encoding_name = zend_string_init("encoding", sizeof("encoding") - 1, 1);
1644 	zend_declare_typed_property(class_entry, property_encoding_name, &property_encoding_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1645 	zend_string_release(property_encoding_name);
1646 
1647 	zval property_version_default_value;
1648 	ZVAL_NULL(&property_version_default_value);
1649 	zend_string *property_version_name = zend_string_init("version", sizeof("version") - 1, 1);
1650 	zend_declare_typed_property(class_entry, property_version_name, &property_version_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING|MAY_BE_NULL));
1651 	zend_string_release(property_version_name);
1652 
1653 	return class_entry;
1654 }
1655 
register_class_DOMEntityReference(zend_class_entry * class_entry_DOMNode)1656 static zend_class_entry *register_class_DOMEntityReference(zend_class_entry *class_entry_DOMNode)
1657 {
1658 	zend_class_entry ce, *class_entry;
1659 
1660 	INIT_CLASS_ENTRY(ce, "DOMEntityReference", class_DOMEntityReference_methods);
1661 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1662 
1663 	return class_entry;
1664 }
1665 
register_class_DOMNotation(zend_class_entry * class_entry_DOMNode)1666 static zend_class_entry *register_class_DOMNotation(zend_class_entry *class_entry_DOMNode)
1667 {
1668 	zend_class_entry ce, *class_entry;
1669 
1670 	INIT_CLASS_ENTRY(ce, "DOMNotation", class_DOMNotation_methods);
1671 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1672 
1673 	zval property_publicId_default_value;
1674 	ZVAL_UNDEF(&property_publicId_default_value);
1675 	zend_string *property_publicId_name = zend_string_init("publicId", sizeof("publicId") - 1, 1);
1676 	zend_declare_typed_property(class_entry, property_publicId_name, &property_publicId_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1677 	zend_string_release(property_publicId_name);
1678 
1679 	zval property_systemId_default_value;
1680 	ZVAL_UNDEF(&property_systemId_default_value);
1681 	zend_string *property_systemId_name = zend_string_init("systemId", sizeof("systemId") - 1, 1);
1682 	zend_declare_typed_property(class_entry, property_systemId_name, &property_systemId_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1683 	zend_string_release(property_systemId_name);
1684 
1685 	return class_entry;
1686 }
1687 
register_class_DOMProcessingInstruction(zend_class_entry * class_entry_DOMNode)1688 static zend_class_entry *register_class_DOMProcessingInstruction(zend_class_entry *class_entry_DOMNode)
1689 {
1690 	zend_class_entry ce, *class_entry;
1691 
1692 	INIT_CLASS_ENTRY(ce, "DOMProcessingInstruction", class_DOMProcessingInstruction_methods);
1693 	class_entry = zend_register_internal_class_ex(&ce, class_entry_DOMNode);
1694 
1695 	zval property_target_default_value;
1696 	ZVAL_UNDEF(&property_target_default_value);
1697 	zend_string *property_target_name = zend_string_init("target", sizeof("target") - 1, 1);
1698 	zend_declare_typed_property(class_entry, property_target_name, &property_target_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1699 	zend_string_release(property_target_name);
1700 
1701 	zval property_data_default_value;
1702 	ZVAL_UNDEF(&property_data_default_value);
1703 	zend_string *property_data_name = zend_string_init("data", sizeof("data") - 1, 1);
1704 	zend_declare_typed_property(class_entry, property_data_name, &property_data_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
1705 	zend_string_release(property_data_name);
1706 
1707 	return class_entry;
1708 }
1709 
1710 #if defined(LIBXML_XPATH_ENABLED)
register_class_DOMXPath(void)1711 static zend_class_entry *register_class_DOMXPath(void)
1712 {
1713 	zend_class_entry ce, *class_entry;
1714 
1715 	INIT_CLASS_ENTRY(ce, "DOMXPath", class_DOMXPath_methods);
1716 	class_entry = zend_register_internal_class_ex(&ce, NULL);
1717 	class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
1718 
1719 	zend_string *property_document_class_DOMDocument = zend_string_init("DOMDocument", sizeof("DOMDocument")-1, 1);
1720 	zval property_document_default_value;
1721 	ZVAL_UNDEF(&property_document_default_value);
1722 	zend_string *property_document_name = zend_string_init("document", sizeof("document") - 1, 1);
1723 	zend_declare_typed_property(class_entry, property_document_name, &property_document_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_document_class_DOMDocument, 0, 0));
1724 	zend_string_release(property_document_name);
1725 
1726 	zval property_registerNodeNamespaces_default_value;
1727 	ZVAL_UNDEF(&property_registerNodeNamespaces_default_value);
1728 	zend_string *property_registerNodeNamespaces_name = zend_string_init("registerNodeNamespaces", sizeof("registerNodeNamespaces") - 1, 1);
1729 	zend_declare_typed_property(class_entry, property_registerNodeNamespaces_name, &property_registerNodeNamespaces_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1730 	zend_string_release(property_registerNodeNamespaces_name);
1731 
1732 	return class_entry;
1733 }
1734 #endif
1735