-
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 IN_ARRAY optimization #18066
Fix IN_ARRAY optimization #18066
Conversation
6e15a49
to
dba894d
Compare
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.
It looks right, please see my question to double check
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.
Leaving target branch decision for other people
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.
I don't see problems. I think this may be merged into PHP-8.4.
in_array() calls are compiled to frameless calls. Adjust the optimization appropriately. Luckily, frameless opcodes simplify the optimization quite a bit. Fixes phpGH-18050
in_array() calls are compiled to frameless calls since PHP 8.4. Adjust the optimization appropriately. Luckily, frameless opcodes simplify the optimization quite a bit.
Fixes GH-18050
I'm not sure if this should land on
master
? Technically a bug, but the fix is not risk-free.