History log of /php-src/ext/simplexml/tests/gh16808.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# fbb00619 15-Nov-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16808: Segmentation fault in RecursiveIteratorIterator->current() with a xml element input

When the current data is invalid, NULL must be returned. At least that's
how the check i

Fix GH-16808: Segmentation fault in RecursiveIteratorIterator->current() with a xml element input

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.

Closes GH-16825.

show more ...