Skip to content

Commit cb88184

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fixed incorrect overflow detection
2 parents ac2382d + 5b51b63 commit cb88184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,10 +2761,10 @@ static int zend_update_type_info(const zend_op_array *op_array,
27612761
}
27622762
if ((t1 & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_LONG) {
27632763
if (!ssa_var_info[ssa_ops[i].op1_use].has_range ||
2764-
(opline->opcode == ZEND_PRE_DEC &&
2764+
(opline->opcode == ZEND_POST_DEC &&
27652765
(ssa_var_info[ssa_ops[i].op1_use].range.underflow ||
27662766
ssa_var_info[ssa_ops[i].op1_use].range.min == ZEND_LONG_MIN)) ||
2767-
(opline->opcode == ZEND_PRE_INC &&
2767+
(opline->opcode == ZEND_POST_INC &&
27682768
(ssa_var_info[ssa_ops[i].op1_use].range.overflow ||
27692769
ssa_var_info[ssa_ops[i].op1_use].range.max == ZEND_LONG_MAX))) {
27702770
/* may overflow */

0 commit comments

Comments
 (0)