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

Add missing cache invalidation in dom_child_replace_with()

This was forgotten during an earlier merge.
This commit is contained in:
Niels Dossche
2023-06-18 14:55:31 +02:00
parent 1cc563f521
commit 8904ac7fef

View File

@@ -553,6 +553,8 @@ void dom_child_replace_with(dom_object *context, zval *nodes, uint32_t nodesc)
return;
}
php_libxml_invalidate_node_list_cache_from_doc(context->document->ptr);
xmlNodePtr insertion_point = child->next;
xmlNodePtr fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc);