We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8693bae + dc1138b commit 6513ca8Copy full SHA for 6513ca8
ext/dom/element.c
@@ -832,7 +832,7 @@ PHP_FUNCTION(dom_element_set_attribute_ns)
832
}
833
834
if (errorcode == 0 && is_xmlns == 0) {
835
- attr = xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value);
+ xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value);
836
837
} else {
838
name_valid = xmlValidateName((xmlChar *) localname, 0);
@@ -844,7 +844,7 @@ PHP_FUNCTION(dom_element_set_attribute_ns)
844
if (attr != NULL && attr->type != XML_ATTRIBUTE_DECL) {
845
node_list_unlink(attr->children TSRMLS_CC);
846
847
- attr = xmlSetProp(elemp, (xmlChar *)localname, (xmlChar *)value);
+ xmlSetProp(elemp, (xmlChar *)localname, (xmlChar *)value);
848
849
850
0 commit comments