Skip to content

Commit 779c40f

Browse files
committed
nit
1 parent ab75195 commit 779c40f

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

ext/dom/namespace_compat.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,4 @@ PHP_DOM_EXPORT php_dom_in_scope_ns php_dom_get_in_scope_ns(php_dom_libxml_ns_map
6969
PHP_DOM_EXPORT php_dom_in_scope_ns php_dom_get_in_scope_ns_legacy(const xmlNode *node);
7070
PHP_DOM_EXPORT void php_dom_in_scope_ns_destroy(php_dom_in_scope_ns *in_scope_ns);
7171

72-
/* Temporarily materialize namespace declarations as nsDef entries on the tree so
73-
* that libxml's native validators/canonicalizers can resolve prefixed QNames that
74-
* appear in element/attribute *content*. Modern DOM keeps declarations off the
75-
* tree (node->nsDef == NULL), which xmlSearchNs() cannot follow. Internal only —
76-
* not part of the exported DOM ABI. */
77-
void dom_relink_ns_decls(HashTable *links, xmlNodePtr root);
78-
void dom_unlink_ns_decls(HashTable *links);
79-
8072
#endif

ext/dom/php_dom.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ bool php_dom_create_nullable_object(xmlNodePtr obj, zval *return_value, dom_obje
187187
xmlNodePtr dom_clone_node(php_dom_libxml_ns_mapper *ns_mapper, xmlNodePtr node, xmlDocPtr doc, bool recursive);
188188
void dom_set_document_ref_pointers(xmlNodePtr node, php_libxml_ref_obj *document);
189189
void dom_set_document_ref_pointers_attr(xmlAttrPtr attr, php_libxml_ref_obj *document);
190+
191+
/* Temporarily materialize namespace declarations as nsDef entries on the tree so
192+
* that libxml's native validators/canonicalizers can resolve prefixed QNames that
193+
* appear in element/attribute *content*. Modern DOM keeps declarations off the
194+
* tree (node->nsDef == NULL), which xmlSearchNs() cannot follow. Internal only. */
195+
void dom_relink_ns_decls(HashTable *links, xmlNodePtr root);
196+
void dom_unlink_ns_decls(HashTable *links);
190197
zval *dom_element_class_list_zval(dom_object *obj);
191198

192199
typedef enum {

0 commit comments

Comments
 (0)