Skip to content

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

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

dstogov
Copy link
Member

@dstogov dstogov commented Nov 1, 2023

This fixes GH-12527

fprintf(stderr, "!");
}
if (MAY_BE_EMPTY_ONLY(info)) {
fprintf(stderr, "empry ");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
fprintf(stderr, "empry ");
fprintf(stderr, "empty ");

@nielsdos
Copy link
Member

nielsdos commented Nov 1, 2023

I believe the bug is similar to a narrowing bug #10008, for which I have a reduced test case: #10008 (comment)
This patch doesn't seem to solve that test case though.

@dstogov
Copy link
Member Author

dstogov commented Nov 2, 2023

#10008 has a completely different reason. I hope, I'll fix it soon.

@nielsdos
Copy link
Member

nielsdos commented Nov 2, 2023

#10008 has a completely different reason. I hope, I'll fix it soon.

Thank you Dmitry!

@dstogov dstogov merged commit 1c95e22 into php:master Nov 2, 2023
@mvorisek
Copy link
Contributor

mvorisek commented Nov 2, 2023

Per #12527 (comment) shouldn't it be landed also in PHP 8.2/8.3?

@dstogov
Copy link
Member Author

dstogov commented Nov 2, 2023

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.

dstogov added a commit that referenced this pull request Nov 3, 2023
…TY flag (#12591)

* Fixed HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag

This fixes GH-12527

* typo
dstogov added a commit that referenced this pull request Nov 3, 2023
* PHP-8.2:
  Backport fix for HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag (#12591)
dstogov added a commit that referenced this pull request Nov 3, 2023
* PHP-8.3:
  Backport fix for HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag (#12591)
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.

JIT composer segfault when requiring phpoffice/phpspreadsheet
4 participants