Bug in associative arrays in PHP <7.2

In PHP <7.2 you can create arrays that can no longer be accessed properly:

91367d1c4636fd753b381406024e303c

You can do some things with it.


91367d1c4636fd753b381406024e303c

The root of all evil is in bug # 61655 . As a workaround, you can turn the botched array back into an object and cast it in a different way:

91367d1c4636fd753b381406024e303c

Or you can do without numeric strings as keys - PHP casted every numeric string as key of an associative array as integer anyway.

Back