Skip to content

Commit a190c7f

Browse files
committed
Sync JIT zend_check_string_offset()
Return after zend_jit_illegal_string_offset() to avoid a redundant warning during conversion. This fixes some tests under PROFITABILITY_CHECKS=0.
1 parent 0fb1ccc commit a190c7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_helpers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ static zend_never_inline zend_long zend_check_string_offset(zval *dim/*, int typ
689689
return offset;
690690
}
691691
zend_jit_illegal_string_offset(dim);
692-
break;
692+
return 0;
693693
}
694694
case IS_UNDEF:
695695
zend_jit_undefined_op_helper(EG(current_execute_data)->opline->op2.var);
@@ -705,7 +705,7 @@ static zend_never_inline zend_long zend_check_string_offset(zval *dim/*, int typ
705705
goto try_again;
706706
default:
707707
zend_jit_illegal_string_offset(dim);
708-
break;
708+
return 0;
709709
}
710710

711711
return zval_get_long_func(dim, /* is_strict */ false);

0 commit comments

Comments
 (0)