[php-src] PR #25435: Fix GH-25434: C14NFile() skips namespace relinking on success
| From: | lazerg | Date: | Fri, 13 Nov 2026 02:16:17 +0000 |
| Subject: | [php-src] PR #25435: Fix GH-25434: C14NFile() skips namespace relinking on success | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40606@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25435
Author: lazerg
For modern DOM,
dom_canonicalization() takes the xmlns:* attributes off
their elements before canonicalizing and puts them back at clean_links. On success,
C14NFile() returned early with RETURN_LONG(), so the declarations stayed
detached and the links table leaked. It now sets the return value and falls through to
the cleanup like C14N() does.
Fixes #25434