[php-src] PR #25270: Fix GH-25267: NULL dereference in to_xml_any() with integer key
| From: | lazerg | Date: | Sat, 07 Nov 2026 09:47:38 +0000 |
| Subject: | [php-src] PR #25270: Fix GH-25267: NULL dereference in to_xml_any() with integer key | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40377@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25270
Author: lazerg
to_xml_any() renames each node after its array key, but an integer key gives a NULL
zend_string and ZSTR_VAL() crashes on it. Now it only renames for string
keys, the same way model_to_xml_object() handles them, so an integer-keyed element
keeps its default name.
Fixes #25267