[php-src] PR #21371: Fix GH-21357: XSLTProcessor works with DOMDocument, but fails with Dom\XMLDocument
| From: | ndossche | Date: | Sat, 07 Mar 2026 10:07:10 +0000 |
| Subject: | [php-src] PR #21371: Fix GH-21357: XSLTProcessor works with DOMDocument, but fails with Dom\XMLDocument | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35119@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21371
Author: ndossche
Registering namespace after the parsing is too late because parsing can fail due to attributes
referencing namespaces.
So we have to register fake namespaces before the parsing. However, the clone operation reconciles
namespaces in the wrong way, so we have to clone via an object.