Skip to content

Commit 49fa2e4

Browse files
committed
Make some arguments of dom_get_elements_by_tag_name_ns_raw() const
1 parent 59a0d00 commit 49fa2e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/dom/php_dom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ static bool dom_match_qualified_name_for_tag_name_equality(const xmlChar *local,
18691869
return dom_match_qualified_name_according_to_spec(local_to_use, nodep);
18701870
}
18711871

1872-
xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr basep, xmlNodePtr nodep, xmlChar *ns, xmlChar *local, zend_string *local_lower, zend_long *cur, zend_long index) /* {{{ */
1872+
xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr basep, xmlNodePtr nodep, const xmlChar *ns, const xmlChar *local, const zend_string *local_lower, zend_long *cur, zend_long index) /* {{{ */
18731873
{
18741874
/* Can happen with detached document */
18751875
if (UNEXPECTED(nodep == NULL)) {

ext/dom/php_dom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last);
145145
xmlNsPtr dom_get_nsdecl(xmlNode *node, xmlChar *localName);
146146
void php_dom_normalize_legacy(xmlNodePtr nodep);
147147
void php_dom_normalize_modern(xmlNodePtr nodep);
148-
xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr basep, xmlNodePtr nodep, xmlChar *ns, xmlChar *local, zend_string *local_lower, zend_long *cur, zend_long index);
148+
xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr basep, xmlNodePtr nodep, const xmlChar *ns, const xmlChar *local, const zend_string *local_lower, zend_long *cur, zend_long index);
149149
void php_dom_create_implementation(zval *retval, bool modern);
150150
int dom_hierarchy(xmlNodePtr parent, xmlNodePtr child);
151151
bool dom_has_feature(zend_string *feature, zend_string *version);

0 commit comments

Comments
 (0)