History log of /PHP-8.4/ext/simplexml/tests/gh10983.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# dd29b66d 30-Mar-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-10983: State-dependant segfault in ReflectionObject::getProperties

This is a variant of GH-10200, but in a different place.
Basically, simplexml may create a properties table that

Fix GH-10983: State-dependant segfault in ReflectionObject::getProperties

This is a variant of GH-10200, but in a different place.
Basically, simplexml may create a properties table that's packed instead
of associative. But the macro that was used to loop over the properties
table assumed that it was always associative. Replace it by the macro
that figures it out automatically which one of the two it is.

For test: Co-authored-by: jnvsor

Closes GH-10984.

show more ...