Skip to content

Fix GH-21746#21891

Open
arnaud-lb wants to merge 1 commit intophp:PHP-8.5from
arnaud-lb:gh21746
Open

Fix GH-21746#21891
arnaud-lb wants to merge 1 commit intophp:PHP-8.5from
arnaud-lb:gh21746

Conversation

@arnaud-lb
Copy link
Copy Markdown
Member

Fixes GH-21746

This is the same fix as 79aaeea, which was likely lost in the rebase of 76d7c61.

In the reproducer, variable $i of LR::p() was marked as ZREG_STORE, and the store happened after leaving LR::p's frame, so it was overriding some variable in the parent frame.

@arnaud-lb arnaud-lb changed the base branch from master to PHP-8.5 April 27, 2026 16:35
@theodorejb
Copy link
Copy Markdown
Contributor

I confirmed that this patch resolves both the TypeError and segfault for me. By any chance can it make it into PHP 8.5.6?

@arnaud-lb
Copy link
Copy Markdown
Member Author

@theodorejb I can not guarantee it, but there is a good chance it will

@arnaud-lb arnaud-lb marked this pull request as ready for review April 28, 2026 07:28
@arnaud-lb arnaud-lb requested a review from dstogov as a code owner April 28, 2026 07:28
@iluuu1994
Copy link
Copy Markdown
Member

8.5.6 RC is already tagged (has been for almost two weeks), so this won't land unless cherry-picked, but that's unlikely given it's not a new regression.

@arnaud-lb
Copy link
Copy Markdown
Member Author

Oh, forgot about RCs

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.

Segfault with tracing JIT on 2nd call of eval'd closure

3 participants