[php-src] PR #23379: ext/dom: DOMNode::insertBefore() dropping the node used as its own re…

From: Date: Wed, 19 Aug 2026 12:37:31 +0000
Subject: [php-src] PR #23379: ext/dom: DOMNode::insertBefore() dropping the node used as its own re…
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38008@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23379 Author: devnexen …ference. Fix #23365 insertBefore($n, $n) unlinked the node, then rebuilt its position from the pointers the unlink had just cleared, leaving it out of the document with a self-referencing sibling list, freed twice at teardown. Retarget the reference to the node's next sibling, as the modern DOM already does.

« previous php.git-pulls (#38008) next »