[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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.