[GIT-PULLS] [php-src] PR #23358: ext/dom: DOMDocument::adoptNode() stale document references in the ad…
[email protected] (devnexen)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
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.