Skip to content

Conversation

@ndossche
Copy link
Member

All other code caters to dereferencing array elements, except the unserialize handler. This causes references to be present in the fixed array even though this seems not intentional as reference assign is otherwise impossible.
On 8.5+ this causes an assertion failure. On 8.3+ this causes references to be present where they shouldn't be.

…rialization

All other code caters to dereferencing array elements, except the
unserialize handler. This causes references to be present in the fixed
array even though this seems not intentional as reference assign is
otherwise impossible.
On 8.5+ this causes an assertion failure. On 8.3+ this causes references
to be present where they shouldn't be.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msm after reading your explanation

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah even SplFixedArray::fromArray() doesn't allow to sneak in a reference. So this looks good to me.

@ndossche ndossche closed this in 366ed4c Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SplFixedArray incorrectly handles references in deserialization

3 participants