1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove unnecessary invalidation from processing instructions

These invalidations only need to happen when elements are added,
removed, or manipulated. Processing instructions are not elements and
their contents are just text.
This commit is contained in:
Niels Dossche
2023-08-18 18:06:04 +02:00
parent ee82c94208
commit 4ff93f779c

View File

@@ -118,8 +118,6 @@ int dom_processinginstruction_data_write(dom_object *obj, zval *newval)
ZEND_ASSERT(Z_TYPE_P(newval) == IS_STRING);
zend_string *str = Z_STR_P(newval);
php_libxml_invalidate_node_list_cache_from_doc(nodep->doc);
xmlNodeSetContentLen(nodep, (xmlChar *) ZSTR_VAL(str), ZSTR_LEN(str));
return SUCCESS;