Skip to content

Commit 4ff93f7

Browse files
committed
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.
1 parent ee82c94 commit 4ff93f7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/dom/processinginstruction.c

-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ int dom_processinginstruction_data_write(dom_object *obj, zval *newval)
118118
ZEND_ASSERT(Z_TYPE_P(newval) == IS_STRING);
119119
zend_string *str = Z_STR_P(newval);
120120

121-
php_libxml_invalidate_node_list_cache_from_doc(nodep->doc);
122-
123121
xmlNodeSetContentLen(nodep, (xmlChar *) ZSTR_VAL(str), ZSTR_LEN(str));
124122

125123
return SUCCESS;

0 commit comments

Comments
 (0)