summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-05-25 17:05:26 +0300
committerDmitry Stogov <dmitry@zend.com>2020-05-25 17:05:26 +0300
commitbfc56ed511dd2d9bc03111149b58ee708c33743c (patch)
treea34d598722546575c4e9802407fe1847c2754173 /Zend/zend_execute_API.c
parent3376f19742cc68448a26404df98f709f5255a262 (diff)
downloadphp-git-bfc56ed511dd2d9bc03111149b58ee708c33743c.tar.gz
Keep trace number in EG(jit_trace_num) instead of EG(reserved)[zend_func_info_rid]
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 6986841db2..1b48bed125 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -794,9 +794,11 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
if (func->type == ZEND_USER_FUNCTION) {
int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0;
const zend_op *current_opline_before_exception = EG(opline_before_exception);
+ uint32_t orig_jit_trace_num = EG(jit_trace_num);
zend_init_func_execute_data(call, &func->op_array, fci->retval);
zend_execute_ex(call);
+ EG(jit_trace_num) = orig_jit_trace_num;
EG(opline_before_exception) = current_opline_before_exception;
if (call_via_handler) {
/* We must re-initialize function again */