Commit 56ad5c4071a for php
commit 56ad5c4071ace9d316a9178771db70d100ed4180
Author: Weilin Du <weilindu@php.net>
Date: Sat Oct 24 17:15:28 2026 +0800
JIT: Fix upper-bound inference in tracing JIT comparisons (#24633)
diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c
index e2bb21cbbf4..ac942f1952b 100644
--- a/ext/opcache/jit/zend_jit_trace.c
+++ b/ext/opcache/jit/zend_jit_trace.c
@@ -3763,7 +3763,7 @@ static void zend_jit_trace_update_condition_ranges(const zend_op *opline, const
zend_jit_trace_set_var_range(
&ssa->var_info[ssa_op->op2_use],
op2_min,
- op2_max != ZEND_LONG_MIN ?MIN(op2_max, op1_max - 1) : op1_max);
+ op1_max != ZEND_LONG_MIN ? MIN(op2_max, op1_max - 1) : op2_max);
}
}
break;