[php-src] PR #16825: Fix GH-16808: Segmentation fault in RecursiveIteratorIterator->current() with a xml element input
| From: | nielsdos | Date: | Fri, 15 Nov 2024 20:42:56 +0000 |
| Subject: | [php-src] PR #16825: Fix GH-16808: Segmentation fault in RecursiveIteratorIterator->current() with a xml element input | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29665@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16825
Author: nielsdos
When the current data is invalid, NULL must be returned. At least that's how the check in SPL
works and how other extensions do this as well. If we don't do this, an UNDEF value gets
propagated to a return value (misprinted as null); leading to issues.