-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug 81159 #7167
Fix bug 81159 #7167
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first commit looks good.
For the second commit, if we want to make this change, I should it should happen in a more principled way, by reusing the zend_check_string_offset() logic. Now you're handling one of the error cases, but for example not the warning that occurs for float null/true/false/float offsets.
The GC assertion on MacOS seems to be related to that one tho
Right, that's actually a good idea, should also fix the leading numeric string issue. |
The first might be a candidate for PHP-8.0, but I don't think the second one should go on a release branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG if CI happy.
Found partly when looking at #6106 again, but out handling of offsets is really a mess as the handling of Object (namely SPL), strings, and arrays all depend of their context which are all probably deserving of their own bug reports.