Skip to content

Commit

Permalink
We track only arguments of user functions on abstract stack
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jul 23, 2020
1 parent 7de2366 commit 14400b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/opcache/jit/zend_jit_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ static void zend_jit_trace_send_type(const zend_op *opline, zend_jit_trace_stack
const zend_op_array *op_array = &call->func->op_array;
uint32_t arg_num = opline->op2.num;

if (arg_num > op_array->num_args) {
if (op_array->type != ZEND_USER_FUNCTION
|| arg_num > op_array->num_args) {
return;
}
if (op_array->fn_flags & ZEND_ACC_HAS_TYPE_HINTS) {
Expand Down

0 comments on commit 14400b5

Please sign in to comment.