Repository navigation
Fix tracing JIT reading the int result of ++/-- on a reference as a double - #25383
Closed
ChrisAbner wants to merge 1 commit into
Closed
ChrisAbner wants to merge 1 commit into
ChrisAbner wants to merge 1 commit into
Conversation
ChrisAbner
commented
Nov 11, 2026
Contributor
…ouble After zend_jit_inc_dec(), the double case dropped the speculative guard of the result when !(res_info & MAY_BE_STRING), which is always true there. For a reference the trace does not know the type of the value, so the result can be an int that the next ASSIGN then reads as a double. Check op1_info, like the long case does.
devnexen
approved these changes
Nov 11, 2026
LamentXU123
approved these changes
Nov 11, 2026
LamentXU123
left a comment
Member
There was a problem hiding this comment.
I think this make sense. @ndossche ?
iliaal
approved these changes
Nov 11, 2026
iliaal
left a comment
Member
There was a problem hiding this comment.
Also checked foreach by-ref, a by-ref parameter, use (&$v) and a static property reference: all four return garbage floats before this and the right ints after. Keeping the long case's op1_info condition is fine by me.
Member
|
Thanks ! |
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.