[php-src] PR #23139: ext/dom: Do not recursively normalize descendant elements

From: Date: Sat, 08 Aug 2026 08:18:21 +0000
Subject: [php-src] PR #23139: ext/dom: Do not recursively normalize descendant elements
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37647@lists.php.net to get a copy of this message
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.

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