Skip to content

GH-22004: Fix TSSA of ZEND_FE_FETCH with key operand#22008

Open
arnaud-lb wants to merge 1 commit into
php:PHP-8.4from
arnaud-lb:gh22004
Open

GH-22004: Fix TSSA of ZEND_FE_FETCH with key operand#22008
arnaud-lb wants to merge 1 commit into
php:PHP-8.4from
arnaud-lb:gh22004

Conversation

@arnaud-lb
Copy link
Copy Markdown
Member

Fixes GH-22004.

During type inference of foreach ($array as $key => $elem), in the case of loops that didn't iterate during tracing, we copy the use var info of $elem to the def, but we forgot $key.

@arnaud-lb arnaud-lb changed the base branch from master to PHP-8.4 May 11, 2026 15:06
@arnaud-lb arnaud-lb marked this pull request as ready for review May 11, 2026 15:40
@arnaud-lb arnaud-lb requested a review from dstogov as a code owner May 11, 2026 15:40
@arnaud-lb arnaud-lb requested review from devnexen May 11, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant