mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Handle indirect zvals in SplFixedArray::__serialize
Closes GH-10925.
This commit is contained in:
parent
1f5d9534ae
commit
e698938229
3 changed files with 5 additions and 3 deletions
|
@ -610,7 +610,7 @@ PHP_METHOD(SplFixedArray, __serialize)
|
|||
|
||||
/* members */
|
||||
if (intern->std.properties) {
|
||||
ZEND_HASH_FOREACH_STR_KEY_VAL(intern->std.properties, key, current) {
|
||||
ZEND_HASH_FOREACH_STR_KEY_VAL_IND(intern->std.properties, key, current) {
|
||||
/* The properties hash table can also contain the array elements if the properties table was already rebuilt.
|
||||
* In this case we'd have a NULL key. We can't simply use the properties table in all cases because it's
|
||||
* potentially out of sync (missing elements, or containing removed elements) and might need a rebuild. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue