From: Nikita Popov Date: Thu, 5 Sep 2019 08:46:50 +0000 (+0200) Subject: Load execute_data without global regs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9750ac41e0ecd91c3f4cf956c622be7c9e35186;p=php Load execute_data without global regs --- diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c index 2959ab48ad..332488bc8b 100644 --- a/ext/opcache/jit/zend_jit_vm_helpers.c +++ b/ext/opcache/jit/zend_jit_vm_helpers.c @@ -161,6 +161,9 @@ void ZEND_FASTCALL zend_jit_deprecated_or_abstract_helper(OPLINE_D) } if (EG(exception)) { +#ifndef HAVE_GCC_GLOBAL_REGS + zend_execute_data *execute_data = EG(current_execute_data); +#endif const zend_op *opline = EG(opline_before_exception); if (RETURN_VALUE_USED(opline)) { ZVAL_UNDEF(EX_VAR(opline->result.var));