-
Notifications
You must be signed in to change notification settings - Fork 7.9k
PHP 8.2.6RC1 endless foreach #11171
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
Comments
The What you want is |
@usarise It has worked this way since PHP 5.0 🙂 https://3v4l.org/7eHmFH |
starting with PHP 8.2.6RC1 endless foreach, before |
Oh. You mixed up "Expected" and "Actual" in your report. |
Oh right sorry |
I can reproduce it now. Thanks for the report! |
This is a pretty critical issue. It's caused by #10975. I will revert it for PHP-8.1+. Should I cherry-pick it for the given release branches or will you take care of that? |
@iluuu1994 I took care of it for PHP 8.2.6. Thanks |
@adoy Thank you! 8.1 will also need those changes, I forgot to ping @patrickallaert. |
@iluuu1994 @adoy Thank you both! 💙 |
@ramsey @patrickallaert Could this be merged for PHP 8.1.19? I'd like to avoid potential issues here. |
@iluuu1994 PHP 8.1.19 non fixed! |
@patrickallaert I see you tagged 8.1.19 without cherry-picking this... |
Yeah, sorry, not following github notices a lot, always better to reach me via e-mail in such cases. I have been reached by @remicollet. |
@patrickallaert Sorry, I should've sent an e-mail. There's no dedicated list for RM things, right? Thanks for re-tagging with the fix! |
Yes, there is: release-managers [at] php.net |
Thanks! My bad, I'll send a mail to the list next time. |
Sorry to bring this up again... EDIT: Ah, but the changelog entry is reverted on the release web page. So it might be okay in the release itself, just not reverted on the github branch. |
@nielsdos This confused me too. It's not a part of the branch, but it is a part of the tag. See: |
I spent hours trying to define this bug only on version 8.1.19 when I was using rector. |
@martin-cod I assume they've built PHP right after the first tag was created instead of using the official zip. |
@iluuu1994 the bug was also in the archives, for example I tested |
Just to be sure, I just downloaded the archive and the bug is no longer in the archives right now. |
This reverts commit 84b4020. Fixes phpGH-11171 (cherry picked from commit dc20cd9)
Uh oh!
There was an error while loading. Please reload this page.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.2.6RC1
Operating System
Debian 11.7
The text was updated successfully, but these errors were encountered: