[php-src] Issue #8041: php 8.2.0-dev crashes with assertion for cloning/get_object_vars on non-empty SplFixedArray (8.1 unaffected)
| From: | dstogov | Date: | Mon, 07 Feb 2022 09:04:33 +0000 |
| Subject: | [php-src] Issue #8041: php 8.2.0-dev crashes with assertion for cloning/get_object_vars on non-empty SplFixedArray (8.1 unaffected) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239525@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8041
Comment Author: dstogov
The real problem is SplFixedArray that reuses properties for something else. I'll try to take a
deeper look before "fixing" the engine for one weird class.
In any case, for `
zend_objects_clone_members()` I would prefer to split the loops for
MAP and unexpected PACKED arrays.
Your second example actually asserts not in `get_object_vars() but in
spl_fixedarray_object_get_properties()`.
I prefer not to touch other places before we confirmed failures.