Skip to content

Commit 8904ac7

Browse files
committed
Add missing cache invalidation in dom_child_replace_with()
This was forgotten during an earlier merge.
1 parent 1cc563f commit 8904ac7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/dom/parentnode.c

+2
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@ void dom_child_replace_with(dom_object *context, zval *nodes, uint32_t nodesc)
553553
return;
554554
}
555555

556+
php_libxml_invalidate_node_list_cache_from_doc(context->document->ptr);
557+
556558
xmlNodePtr insertion_point = child->next;
557559

558560
xmlNodePtr fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc);

0 commit comments

Comments
 (0)