Skip to content

Commit 83478d4

Browse files
committed
Side exit on overflow
1 parent 1cba736 commit 83478d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,11 @@ static int is_checked_guard(const zend_ssa *tssa, const zend_op **ssa_opcodes, u
883883
|| opline->opcode == ZEND_POST_DEC
884884
|| opline->opcode == ZEND_POST_INC) {
885885
return 1;
886+
} else if (opline->opcode == ZEND_ASSIGN_OP
887+
&& (opline->extended_value == ZEND_ADD
888+
|| opline->extended_value == ZEND_SUB
889+
|| opline->extended_value == ZEND_MUL)) {
890+
return 1;
886891
}
887892
}
888893
if (tssa->ops[idx].result_def == var) {

0 commit comments

Comments
 (0)