[GIT-PULLS] [php-src] PR #23139: ext/dom: Do not recursively normalize descendant elements
[email protected] (LamentXU123)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/23139 Author: LamentXU123 https://github.com/php/php-src/issues/23117 and https://github.com/php/php-src/issues/23116 are basically a same bug. DOMNode::normalize() and Dom\Node::normalize() recursively normalized descendant elements. Deeply nested trees could therefore exhaust the C stack. We already have helpers to solve this. These two functions are using legacy implementations, so just update the helper can solve this.