mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Keep trace number in EG(jit_trace_num) instead of EG(reserved)[zend_func_info_rid]
This commit is contained in:
parent
3376f19742
commit
bfc56ed511
5 changed files with 8 additions and 14 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue