[php-src] PR #17206: Fix GH-17198: SplFixedArray assertion failure with get_object_vars
| From: | nielsdos | Date: | Tue, 17 Dec 2024 21:10:58 +0000 |
| Subject: | [php-src] PR #17206: Fix GH-17198: SplFixedArray assertion failure with get_object_vars | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30052@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17206
Author: nielsdos
Because the properties table contains both a numeric index and a string index that map to 0 in a
symbol table, this causes an assertion failure. Looking at the manual page of get_object_vars(), it
seems that only real properties must be included. Given that SplFixedArray's elements are not
accessible like properties, they should be excluded. This restores PHP 8.3 behaviour. The reason
that this didn't cause problems on 8.3 is because it used a different handler (get_properties).