Skip to content

Conversation

nielsdos
Copy link
Member

The current code expects the property name to be a string, but it can also be a number via the {} syntax. Handle this consistently to a string by using zval_get_string which will do the type coercion and refcount update (instead of assuming string and doing an explicit string copy).

@nielsdos nielsdos linked an issue Dec 21, 2024 that may be closed by this pull request
The current code expects the property name to be a string, but it can
also be a number via the {} syntax. Handle this consistently to a string
by using zval_get_string which will do the type coercion and refcount
update (instead of assuming string and doing an explicit string copy).
@nielsdos
Copy link
Member Author

nielsdos commented Jan 7, 2025

@iluuu1994 Is this fine now? 🙂

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Yes, looks good, thanks! 🙂

@nielsdos nielsdos closed this in 7149362 Jan 7, 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.

Numeric parent hook call fails with assertion

2 participants