Skip to content

Commit ee80567

Browse files
committed
Merge branch 'dom-arginfo-stubs'
2 parents 1240c12 + 4253ca4 commit ee80567

19 files changed

+876
-599
lines changed

ext/dom/attr.c

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,7 @@
2424
#if HAVE_LIBXML && HAVE_DOM
2525

2626
#include "php_dom.h"
27-
28-
/* {{{ arginfo */
29-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_attr_is_id, 0, 0, 0)
30-
ZEND_END_ARG_INFO();
31-
32-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_attr_construct, 0, 0, 1)
33-
ZEND_ARG_INFO(0, name)
34-
ZEND_ARG_INFO(0, value)
35-
ZEND_END_ARG_INFO();
36-
/* }}} */
27+
#include "dom_arginfo.h"
3728

3829
/*
3930
* class DOMAttr extends DOMNode
@@ -43,8 +34,8 @@ ZEND_END_ARG_INFO();
4334
*/
4435

4536
const zend_function_entry php_dom_attr_class_functions[] = {
46-
PHP_FALIAS(isId, dom_attr_is_id, arginfo_dom_attr_is_id)
47-
PHP_ME(domattr, __construct, arginfo_dom_attr_construct, ZEND_ACC_PUBLIC)
37+
PHP_FALIAS(isId, dom_attr_is_id, arginfo_class_DOMAttr_isId)
38+
PHP_ME(domattr, __construct, arginfo_class_DOMAttr___construct, ZEND_ACC_PUBLIC)
4839
PHP_FE_END
4940
};
5041

ext/dom/cdatasection.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
#include "php.h"
2323
#if HAVE_LIBXML && HAVE_DOM
2424
#include "php_dom.h"
25-
26-
27-
/* {{{ arginfo */
28-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_cdatasection_construct, 0, 0, 1)
29-
ZEND_ARG_INFO(0, value)
30-
ZEND_END_ARG_INFO();
31-
/* }}} */
25+
#include "dom_arginfo.h"
3226

3327
/*
3428
* class DOMCdataSection extends DOMText
@@ -38,7 +32,7 @@ ZEND_END_ARG_INFO();
3832
*/
3933

4034
const zend_function_entry php_dom_cdatasection_class_functions[] = {
41-
PHP_ME(domcdatasection, __construct, arginfo_dom_cdatasection_construct, ZEND_ACC_PUBLIC)
35+
PHP_ME(domcdatasection, __construct, arginfo_class_DOMCdataSection___construct, ZEND_ACC_PUBLIC)
4236
PHP_FE_END
4337
};
4438

ext/dom/characterdata.c

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,7 @@
2222
#include "php.h"
2323
#if HAVE_LIBXML && HAVE_DOM
2424
#include "php_dom.h"
25-
26-
27-
/* {{{ arginfo */
28-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_characterdata_substring_data, 0, 0, 2)
29-
ZEND_ARG_INFO(0, offset)
30-
ZEND_ARG_INFO(0, count)
31-
ZEND_END_ARG_INFO();
32-
33-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_characterdata_append_data, 0, 0, 1)
34-
ZEND_ARG_INFO(0, arg)
35-
ZEND_END_ARG_INFO();
36-
37-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_characterdata_insert_data, 0, 0, 2)
38-
ZEND_ARG_INFO(0, offset)
39-
ZEND_ARG_INFO(0, arg)
40-
ZEND_END_ARG_INFO();
41-
42-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_characterdata_delete_data, 0, 0, 2)
43-
ZEND_ARG_INFO(0, offset)
44-
ZEND_ARG_INFO(0, count)
45-
ZEND_END_ARG_INFO();
46-
47-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_characterdata_replace_data, 0, 0, 3)
48-
ZEND_ARG_INFO(0, offset)
49-
ZEND_ARG_INFO(0, count)
50-
ZEND_ARG_INFO(0, arg)
51-
ZEND_END_ARG_INFO();
52-
/* }}} */
25+
#include "dom_arginfo.h"
5326

5427
/*
5528
* class DOMCharacterData extends DOMNode
@@ -59,11 +32,11 @@ ZEND_END_ARG_INFO();
5932
*/
6033

6134
const zend_function_entry php_dom_characterdata_class_functions[] = {
62-
PHP_FALIAS(substringData, dom_characterdata_substring_data, arginfo_dom_characterdata_substring_data)
63-
PHP_FALIAS(appendData, dom_characterdata_append_data, arginfo_dom_characterdata_append_data)
64-
PHP_FALIAS(insertData, dom_characterdata_insert_data, arginfo_dom_characterdata_insert_data)
65-
PHP_FALIAS(deleteData, dom_characterdata_delete_data, arginfo_dom_characterdata_delete_data)
66-
PHP_FALIAS(replaceData, dom_characterdata_replace_data, arginfo_dom_characterdata_replace_data)
35+
PHP_FALIAS(substringData, dom_characterdata_substring_data, arginfo_class_DOMCharacterData_substringData)
36+
PHP_FALIAS(appendData, dom_characterdata_append_data, arginfo_class_DOMCharacterData_appendData)
37+
PHP_FALIAS(insertData, dom_characterdata_insert_data, arginfo_class_DOMCharacterData_insertData)
38+
PHP_FALIAS(deleteData, dom_characterdata_delete_data, arginfo_class_DOMCharacterData_deleteData)
39+
PHP_FALIAS(replaceData, dom_characterdata_replace_data, arginfo_class_DOMCharacterData_replaceData)
6740
PHP_FE_END
6841
};
6942

ext/dom/comment.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
#include "php.h"
2323
#if HAVE_LIBXML && HAVE_DOM
2424
#include "php_dom.h"
25-
26-
27-
/* {{{ arginfo */
28-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_comment_construct, 0, 0, 0)
29-
ZEND_ARG_INFO(0, value)
30-
ZEND_END_ARG_INFO();
31-
/* }}} */
25+
#include "dom_arginfo.h"
3226

3327
/*
3428
* class DOMComment extends DOMCharacterData
@@ -38,7 +32,7 @@ ZEND_END_ARG_INFO();
3832
*/
3933

4034
const zend_function_entry php_dom_comment_class_functions[] = {
41-
PHP_ME(domcomment, __construct, arginfo_dom_comment_construct, ZEND_ACC_PUBLIC)
35+
PHP_ME(domcomment, __construct, arginfo_class_DOMComment___construct, ZEND_ACC_PUBLIC)
4236
PHP_FE_END
4337
};
4438

ext/dom/document.c

Lines changed: 40 additions & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "php.h"
2323
#if HAVE_LIBXML && HAVE_DOM
2424
#include "php_dom.h"
25+
#include "dom_arginfo.h"
2526
#include <libxml/SAX.h>
2627
#ifdef LIBXML_SCHEMAS_ENABLED
2728
#include <libxml/relaxng.h>
@@ -37,146 +38,6 @@ struct _idsIterator {
3738
#define DOM_LOAD_STRING 0
3839
#define DOM_LOAD_FILE 1
3940

40-
/* {{{ arginfo */
41-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_element, 0, 0, 1)
42-
ZEND_ARG_INFO(0, tagName)
43-
ZEND_ARG_INFO(0, value)
44-
ZEND_END_ARG_INFO();
45-
46-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_document_fragment, 0, 0, 0)
47-
ZEND_END_ARG_INFO();
48-
49-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_text_node, 0, 0, 1)
50-
ZEND_ARG_INFO(0, data)
51-
ZEND_END_ARG_INFO();
52-
53-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_comment, 0, 0, 1)
54-
ZEND_ARG_INFO(0, data)
55-
ZEND_END_ARG_INFO();
56-
57-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_cdatasection, 0, 0, 1)
58-
ZEND_ARG_INFO(0, data)
59-
ZEND_END_ARG_INFO();
60-
61-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_processing_instruction, 0, 0, 1)
62-
ZEND_ARG_INFO(0, target)
63-
ZEND_ARG_INFO(0, data)
64-
ZEND_END_ARG_INFO();
65-
66-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_attribute, 0, 0, 1)
67-
ZEND_ARG_INFO(0, name)
68-
ZEND_END_ARG_INFO();
69-
70-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_entity_reference, 0, 0, 1)
71-
ZEND_ARG_INFO(0, name)
72-
ZEND_END_ARG_INFO();
73-
74-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_get_elements_by_tag_name, 0, 0, 1)
75-
ZEND_ARG_INFO(0, tagName)
76-
ZEND_END_ARG_INFO();
77-
78-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_import_node, 0, 0, 1)
79-
ZEND_ARG_OBJ_INFO(0, importedNode, DOMNode, 0)
80-
ZEND_ARG_INFO(0, deep)
81-
ZEND_END_ARG_INFO();
82-
83-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_element_ns, 0, 0, 2)
84-
ZEND_ARG_INFO(0, namespaceURI)
85-
ZEND_ARG_INFO(0, qualifiedName)
86-
ZEND_ARG_INFO(0, value)
87-
ZEND_END_ARG_INFO();
88-
89-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_attribute_ns, 0, 0, 2)
90-
ZEND_ARG_INFO(0, namespaceURI)
91-
ZEND_ARG_INFO(0, qualifiedName)
92-
ZEND_END_ARG_INFO();
93-
94-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_get_elements_by_tag_name_ns, 0, 0, 2)
95-
ZEND_ARG_INFO(0, namespaceURI)
96-
ZEND_ARG_INFO(0, localName)
97-
ZEND_END_ARG_INFO();
98-
99-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_get_element_by_id, 0, 0, 1)
100-
ZEND_ARG_INFO(0, elementId)
101-
ZEND_END_ARG_INFO();
102-
103-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_adopt_node, 0, 0, 1)
104-
ZEND_ARG_OBJ_INFO(0, source, DOMNode, 0)
105-
ZEND_END_ARG_INFO();
106-
107-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_normalize_document, 0, 0, 0)
108-
ZEND_END_ARG_INFO();
109-
110-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_load, 0, 0, 1)
111-
ZEND_ARG_INFO(0, source)
112-
ZEND_ARG_INFO(0, options)
113-
ZEND_END_ARG_INFO();
114-
115-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_save, 0, 0, 1)
116-
ZEND_ARG_INFO(0, file)
117-
ZEND_END_ARG_INFO();
118-
119-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_loadxml, 0, 0, 1)
120-
ZEND_ARG_INFO(0, source)
121-
ZEND_ARG_INFO(0, options)
122-
ZEND_END_ARG_INFO();
123-
124-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_savexml, 0, 0, 0)
125-
ZEND_ARG_OBJ_INFO(0, node, DOMNode, 1)
126-
ZEND_ARG_INFO(0, options)
127-
ZEND_END_ARG_INFO();
128-
129-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_construct, 0, 0, 0)
130-
ZEND_ARG_INFO(0, version)
131-
ZEND_ARG_INFO(0, encoding)
132-
ZEND_END_ARG_INFO();
133-
134-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_validate, 0, 0, 0)
135-
ZEND_END_ARG_INFO();
136-
137-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_xinclude, 0, 0, 0)
138-
ZEND_ARG_INFO(0, options)
139-
ZEND_END_ARG_INFO();
140-
141-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_loadhtml, 0, 0, 1)
142-
ZEND_ARG_INFO(0, source)
143-
ZEND_ARG_INFO(0, options)
144-
ZEND_END_ARG_INFO();
145-
146-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_loadhtmlfile, 0, 0, 1)
147-
ZEND_ARG_INFO(0, source)
148-
ZEND_ARG_INFO(0, options)
149-
ZEND_END_ARG_INFO();
150-
151-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_savehtml, 0, 0, 0)
152-
ZEND_END_ARG_INFO();
153-
154-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_savehtmlfile, 0, 0, 1)
155-
ZEND_ARG_INFO(0, file)
156-
ZEND_END_ARG_INFO();
157-
158-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_schema_validate_file, 0, 0, 1)
159-
ZEND_ARG_INFO(0, filename)
160-
ZEND_END_ARG_INFO();
161-
162-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_schema_validate_xml, 0, 0, 1)
163-
ZEND_ARG_INFO(0, source)
164-
ZEND_END_ARG_INFO();
165-
166-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_relaxNG_validate_file, 0, 0, 1)
167-
ZEND_ARG_INFO(0, filename)
168-
ZEND_END_ARG_INFO();
169-
170-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_relaxNG_validate_xml, 0, 0, 1)
171-
ZEND_ARG_INFO(0, source)
172-
ZEND_END_ARG_INFO();
173-
174-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_registernodeclass, 0, 0, 2)
175-
ZEND_ARG_INFO(0, baseClass)
176-
ZEND_ARG_INFO(0, extendedClass)
177-
ZEND_END_ARG_INFO();
178-
/* }}} */
179-
18041
/*
18142
* class DOMDocument extends DOMNode
18243
*
@@ -185,42 +46,42 @@ ZEND_END_ARG_INFO();
18546
*/
18647

18748
const zend_function_entry php_dom_document_class_functions[] = { /* {{{ */
188-
PHP_FALIAS(createElement, dom_document_create_element, arginfo_dom_document_create_element)
189-
PHP_FALIAS(createDocumentFragment, dom_document_create_document_fragment, arginfo_dom_document_create_document_fragment)
190-
PHP_FALIAS(createTextNode, dom_document_create_text_node, arginfo_dom_document_create_text_node)
191-
PHP_FALIAS(createComment, dom_document_create_comment, arginfo_dom_document_create_comment)
192-
PHP_FALIAS(createCDATASection, dom_document_create_cdatasection, arginfo_dom_document_create_cdatasection)
193-
PHP_FALIAS(createProcessingInstruction, dom_document_create_processing_instruction, arginfo_dom_document_create_processing_instruction)
194-
PHP_FALIAS(createAttribute, dom_document_create_attribute, arginfo_dom_document_create_attribute)
195-
PHP_FALIAS(createEntityReference, dom_document_create_entity_reference, arginfo_dom_document_create_entity_reference)
196-
PHP_FALIAS(getElementsByTagName, dom_document_get_elements_by_tag_name, arginfo_dom_document_get_elements_by_tag_name)
197-
PHP_FALIAS(importNode, dom_document_import_node, arginfo_dom_document_import_node)
198-
PHP_FALIAS(createElementNS, dom_document_create_element_ns, arginfo_dom_document_create_element_ns)
199-
PHP_FALIAS(createAttributeNS, dom_document_create_attribute_ns, arginfo_dom_document_create_attribute_ns)
200-
PHP_FALIAS(getElementsByTagNameNS, dom_document_get_elements_by_tag_name_ns, arginfo_dom_document_get_elements_by_tag_name_ns)
201-
PHP_FALIAS(getElementById, dom_document_get_element_by_id, arginfo_dom_document_get_element_by_id)
202-
PHP_FALIAS(adoptNode, dom_document_adopt_node, arginfo_dom_document_adopt_node)
203-
PHP_FALIAS(normalizeDocument, dom_document_normalize_document, arginfo_dom_document_normalize_document)
204-
PHP_ME(domdocument, load, arginfo_dom_document_load, ZEND_ACC_PUBLIC)
205-
PHP_FALIAS(save, dom_document_save, arginfo_dom_document_save)
206-
PHP_ME(domdocument, loadXML, arginfo_dom_document_loadxml, ZEND_ACC_PUBLIC)
207-
PHP_FALIAS(saveXML, dom_document_savexml, arginfo_dom_document_savexml)
208-
PHP_ME(domdocument, __construct, arginfo_dom_document_construct, ZEND_ACC_PUBLIC)
209-
PHP_FALIAS(validate, dom_document_validate, arginfo_dom_document_validate)
210-
PHP_FALIAS(xinclude, dom_document_xinclude, arginfo_dom_document_xinclude)
49+
PHP_FALIAS(createElement, dom_document_create_element, arginfo_class_DOMDocument_createElement)
50+
PHP_FALIAS(createDocumentFragment, dom_document_create_document_fragment, arginfo_class_DOMDocument_createDocumentFragment)
51+
PHP_FALIAS(createTextNode, dom_document_create_text_node, arginfo_class_DOMDocument_createTextNode)
52+
PHP_FALIAS(createComment, dom_document_create_comment, arginfo_class_DOMDocument_createComment)
53+
PHP_FALIAS(createCDATASection, dom_document_create_cdatasection, arginfo_class_DOMDocument_createCDATASection)
54+
PHP_FALIAS(createProcessingInstruction, dom_document_create_processing_instruction, arginfo_class_DOMDocument_createProcessingInstruction)
55+
PHP_FALIAS(createAttribute, dom_document_create_attribute, arginfo_class_DOMDocument_createAttribute)
56+
PHP_FALIAS(createEntityReference, dom_document_create_entity_reference, arginfo_class_DOMDocument_createEntityReference)
57+
PHP_FALIAS(getElementsByTagName, dom_document_get_elements_by_tag_name, arginfo_class_DOMDocument_getElementsByTagName)
58+
PHP_FALIAS(importNode, dom_document_import_node, arginfo_class_DOMDocument_importNode)
59+
PHP_FALIAS(createElementNS, dom_document_create_element_ns, arginfo_class_DOMDocument_createElementNS)
60+
PHP_FALIAS(createAttributeNS, dom_document_create_attribute_ns, arginfo_class_DOMDocument_createAttributeNS)
61+
PHP_FALIAS(getElementsByTagNameNS, dom_document_get_elements_by_tag_name_ns, arginfo_class_DOMDocument_getElementsByTagNameNS)
62+
PHP_FALIAS(getElementById, dom_document_get_element_by_id, arginfo_class_DOMDocument_getElementById)
63+
PHP_FALIAS(adoptNode, dom_document_adopt_node, arginfo_class_DOMDocument_adoptNode)
64+
PHP_FALIAS(normalizeDocument, dom_document_normalize_document, arginfo_class_DOMDocument_normalizeDocument)
65+
PHP_ME(domdocument, load, arginfo_class_DOMDocument_load, ZEND_ACC_PUBLIC)
66+
PHP_FALIAS(save, dom_document_save, arginfo_class_DOMDocument_save)
67+
PHP_ME(domdocument, loadXML, arginfo_class_DOMDocument_loadXML, ZEND_ACC_PUBLIC)
68+
PHP_FALIAS(saveXML, dom_document_savexml, arginfo_class_DOMDocument_saveXML)
69+
PHP_ME(domdocument, __construct, arginfo_class_DOMDocument___construct, ZEND_ACC_PUBLIC)
70+
PHP_FALIAS(validate, dom_document_validate, arginfo_class_DOMDocument_validate)
71+
PHP_FALIAS(xinclude, dom_document_xinclude, arginfo_class_DOMDocument_xinclude)
21172
#if defined(LIBXML_HTML_ENABLED)
212-
PHP_ME(domdocument, loadHTML, arginfo_dom_document_loadhtml, ZEND_ACC_PUBLIC)
213-
PHP_ME(domdocument, loadHTMLFile, arginfo_dom_document_loadhtmlfile, ZEND_ACC_PUBLIC)
214-
PHP_FALIAS(saveHTML, dom_document_save_html, arginfo_dom_document_savehtml)
215-
PHP_FALIAS(saveHTMLFile, dom_document_save_html_file, arginfo_dom_document_savehtmlfile)
73+
PHP_ME(domdocument, loadHTML, arginfo_class_DOMDocument_loadHTML, ZEND_ACC_PUBLIC)
74+
PHP_ME(domdocument, loadHTMLFile, arginfo_class_DOMDocument_loadHTMLFile, ZEND_ACC_PUBLIC)
75+
PHP_FALIAS(saveHTML, dom_document_save_html, arginfo_class_DOMDocument_saveHTML)
76+
PHP_FALIAS(saveHTMLFile, dom_document_save_html_file, arginfo_class_DOMDocument_saveHTMLFile)
21677
#endif /* defined(LIBXML_HTML_ENABLED) */
21778
#if defined(LIBXML_SCHEMAS_ENABLED)
218-
PHP_FALIAS(schemaValidate, dom_document_schema_validate_file, arginfo_dom_document_schema_validate_file)
219-
PHP_FALIAS(schemaValidateSource, dom_document_schema_validate_xml, arginfo_dom_document_schema_validate_xml)
220-
PHP_FALIAS(relaxNGValidate, dom_document_relaxNG_validate_file, arginfo_dom_document_relaxNG_validate_file)
221-
PHP_FALIAS(relaxNGValidateSource, dom_document_relaxNG_validate_xml, arginfo_dom_document_relaxNG_validate_xml)
79+
PHP_FALIAS(schemaValidate, dom_document_schema_validate_file, arginfo_class_DOMDocument_schemaValidate)
80+
PHP_FALIAS(schemaValidateSource, dom_document_schema_validate_xml, arginfo_class_DOMDocument_schemaValidateSource)
81+
PHP_FALIAS(relaxNGValidate, dom_document_relaxNG_validate_file, arginfo_class_DOMDocument_relaxNGValidate)
82+
PHP_FALIAS(relaxNGValidateSource, dom_document_relaxNG_validate_xml, arginfo_class_DOMDocument_relaxNGValidateSource)
22283
#endif
223-
PHP_ME(domdocument, registerNodeClass, arginfo_dom_document_registernodeclass, ZEND_ACC_PUBLIC)
84+
PHP_ME(domdocument, registerNodeClass, arginfo_class_DOMDocument_registerNodeClass, ZEND_ACC_PUBLIC)
22485
PHP_FE_END
22586
};
22687
/* }}} */
@@ -1228,7 +1089,13 @@ Since: DOM Level 3
12281089
*/
12291090
PHP_FUNCTION(dom_document_adopt_node)
12301091
{
1231-
DOM_NOT_IMPLEMENTED();
1092+
zval *nodep = NULL;
1093+
1094+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &nodep, dom_node_class_entry) == FAILURE) {
1095+
return;
1096+
}
1097+
1098+
DOM_NOT_IMPLEMENTED();
12321099
}
12331100
/* }}} end dom_document_adopt_node */
12341101

0 commit comments

Comments
 (0)