From 14400b50d3c625308c0e0ab9c265c559820e962f Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 23 Jul 2020 13:39:49 +0300 Subject: [PATCH] We track only arguments of user functions on abstract stack --- ext/opcache/jit/zend_jit_trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 364625c748..310dacd840 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -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) { -- 2.50.1