com php-src: We track only arguments of user functions on abstract stack: ext/opcache/jit/zend_jit_trace.c
| From: | Dmitry Stogov | Date: | Thu, 23 Jul 2020 10:39:49 +0000 |
| Subject: | com php-src: We track only arguments of user functions on abstract stack: ext/opcache/jit/zend_jit_trace.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112337@lists.php.net to get a copy of this message | ||
Commit: 14400b50d3c625308c0e0ab9c265c559820e962f
Author: Dmitry Stogov <dmitry@zend.com> Thu, 23 Jul 2020 13:39:49 +0300
Parents: 7de23662df0c88d5e6638c06a155170e24de0e9d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=14400b50d3c625308c0e0ab9c265c559820e962f
Log:
We track only arguments of user functions on abstract stack
Changed paths:
M ext/opcache/jit/zend_jit_trace.c
Diff:
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) {