diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 9c3e77a56a8..98670b26c0c 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -10082,7 +10082,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend } } - if (!trace && op_array == &func->op_array + if (GCC_GLOBAL_REGS && !trace && op_array == &func->op_array && num_args >= op_array->required_num_args) { /* recursive call */ if (ZEND_OBSERVER_ENABLED) {