-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fixed HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag #12591
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
Conversation
Zend/Optimizer/zend_dump.c
Outdated
fprintf(stderr, "!"); | ||
} | ||
if (MAY_BE_EMPTY_ONLY(info)) { | ||
fprintf(stderr, "empry "); |
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.
fprintf(stderr, "empry "); | |
fprintf(stderr, "empty "); |
I believe the bug is similar to a narrowing bug #10008, for which I have a reduced test case: #10008 (comment) |
#10008 has a completely different reason. I hope, I'll fix it soon. |
Thank you Dmitry! |
Per #12527 (comment) shouldn't it be landed also in PHP 8.2/8.3? |
In case of no problems with community tests, I plan to back-port this tomorrow or on Monday. |
* PHP-8.2: Backport fix for HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag (#12591)
* PHP-8.3: Backport fix for HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag (#12591)
This fixes GH-12527