-
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 GH-15901: phpdbg: Assertion failure on i funcs
#15929
Conversation
New hash tables are not automatically packed, so we must not treat them as such. Therefore we guard the foreach appropriately.
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.
HT_IS_INITIALIZED()
would make slightly more sense to me, but this looks fine too.
Ah, right, when reading the code this is better. However, for maintenance using |
Indeed, but then at least we'd crash, rather than just silently not hand the array. |
Makes sense. Changed to |
The macOS CI failure seems to be unrelated to the PR. |
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.
LGTM
and yeah, curl has started failing on macOS since yesterday or so, it's unrelated
Should we update the PHP-8.2 macOS CI? |
@cmb69 Do you know what the cause is? I have no clue. The failures are seemingly random, although it's always the same tests that fail. |
@iluuu1994, hmm, just guessing, but might be due to https://github.com/php/php-src/pull/15877/files#diff-ef4c5569bff099e37e482441804e39e99ca75e1a0cdb13bf555a99a2f4feef3cL21. |
I see around 20 successfully macOS builds after that commit, so it seems unlikely. But who knows? |
See #15958. If that fails, it's something else; if it succeeds, well, who knows? :) |
Well, #15958 failed; we may continue the discussion there. |
New hash tables are not automatically packed, so we must not treat them as such. Therefore we guard the foreach appropriately.