Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
a side trace can end at
DO_FCALLwhile a live variable is still held in a register. when execution returns to the interpreter, the variable's VM slot may still be undefined.this fixes the issue by syncing live register values and required CV types before the call can switch execution frames. calls that continue into the callee are left unchanged.
also adds a PHPT regression test for GH-24678.
Testing
confirmed the regression test fails on unmodified PHP 8.5 and passes with the fix
JIT suite: 581 passed, 17 skipped, 0 failed
OPcache suite: 1,013 passed, 49 skipped, 1 expected failure, 0 failed
broader PHP suite: 12,442 passed; 5 failures reproduced on the unmodified baseline due to missing extensions
original reproducer passes with and without register allocation
120/120 additional edge-case configurations passed
100 repeated runs of the original failing configuration passed, plus 20 after rebuilding
PHP 8.4 is also affected, but needs a slightly different fix and the inherited-register handling from GH-24622.
release, ZTS and sanitizer builds haven't been completed.