Skip to content

Commit 14400b5

Browse files
committed
We track only arguments of user functions on abstract stack
1 parent 7de2366 commit 14400b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ static void zend_jit_trace_send_type(const zend_op *opline, zend_jit_trace_stack
449449
const zend_op_array *op_array = &call->func->op_array;
450450
uint32_t arg_num = opline->op2.num;
451451

452-
if (arg_num > op_array->num_args) {
452+
if (op_array->type != ZEND_USER_FUNCTION
453+
|| arg_num > op_array->num_args) {
453454
return;
454455
}
455456
if (op_array->fn_flags & ZEND_ACC_HAS_TYPE_HINTS) {

0 commit comments

Comments
 (0)