[php-src] PR #25758: Reject DTD declaration nodes in adoptNode

From: Date: Wed, 25 Nov 2026 20:48:34 +0000
Subject: [php-src] PR #25758: Reject DTD declaration nodes in adoptNode
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41017@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25758 Author: imattas Closes #25750 Reject XML_ELEMENT_DECL, XML_ATTRIBUTE_DECL, and XML_ENTITY_DECL nodes before cross-document adoption mutates libxml ownership. These declarations remain owned by their source DTD, and moving them can crash during document teardown. Adds a modern DOM regression test for element and entity declarations. Focused PHPT passes on PHP 8.4.29-dev with ASan (1/1).

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