[php-src] PR #23358: ext/dom: DOMDocument::adoptNode() stale document references in the ad…
| From: | devnexen | Date: | Tue, 18 Aug 2026 19:31:25 +0000 |
| Subject: | [php-src] PR #23358: ext/dom: DOMDocument::adoptNode() stale document references in the ad… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37981@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23358
Author: devnexen
…opted subtree.
Fix #23352
php_dom_transfer_document_ref() only retargeted the leftmost descendant chain, and never an
attribute's value nodes, leaving retained nodes pointing at the freed source document. Replaced
with an iterative walk over the whole subtree.