You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So each comparisons narrows the range, but (int)5.5 equals 5. Then SCCP performs folding and we end up with the wrong result. The problem is that the range inference is only valid on int inputs.
I'm unsure how to fix this. We could track whether the range is definitely for an int, but that's painful.
Activity
LamentXU123 commentedon Oct 3, 2026
Here is an related case I stumbled across I find intresting
With Opcache open it returns six. Which it shouldn't.
ext/opcache: Fix phpGH-24088 integer range propagation
ext/opcache: Fix phpGH-24088 integer range propagation
ndossche commentedon Nov 8, 2026
JIT fuzzer ran into a variant: https://issues.oss-fuzz.com/issues/579025375