]> granicus.if.org Git - php/commitdiff
Load execute_data without global regs
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 5 Sep 2019 08:46:50 +0000 (10:46 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 5 Sep 2019 08:46:50 +0000 (10:46 +0200)
ext/opcache/jit/zend_jit_vm_helpers.c

index 2959ab48ad0af1dca60cea92ed5c17146df19223..332488bc8b677e24b5212b23f3d72755ce0fbb4b 100644 (file)
@@ -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));