From: Dmitry Stogov Date: Thu, 23 Jul 2020 10:39:49 +0000 (+0300) Subject: We track only arguments of user functions on abstract stack X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14400b50d3c625308c0e0ab9c265c559820e962f;p=php We track only arguments of user functions on abstract stack --- 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) {