mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use xmlSetNsProp when possible to prevent parsing the name
The normal xmlSetProp() function parses the name to find the namespace. But we don't care about the namespace in this case.
This commit is contained in:
parent
869ecf5320
commit
c8964b9a08
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ static xmlAttrPtr dom_element_reflected_attribute_write(dom_object *obj, zval *n
|
|||
|
||||
/* Typed property, so it is a string already */
|
||||
ZEND_ASSERT(Z_TYPE_P(newval) == IS_STRING);
|
||||
return xmlSetProp(nodep, (const xmlChar *) name, (const xmlChar *) Z_STRVAL_P(newval));
|
||||
return xmlSetNsProp(nodep, NULL, (const xmlChar *) name, (const xmlChar *) Z_STRVAL_P(newval));
|
||||
}
|
||||
|
||||
/* {{{ className string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue