From be0d9126743b9beff7e3bb01fb76030f21f073cf Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 21 Jul 2020 14:11:19 +0300 Subject: [PATCH] Avoid recording of uninitialized variable --- ext/opcache/jit/zend_jit_vm_helpers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c index c55ca991d4..7668f47f2a 100644 --- a/ext/opcache/jit/zend_jit_vm_helpers.c +++ b/ext/opcache/jit/zend_jit_vm_helpers.c @@ -654,7 +654,9 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex, } if (opline->op2_type & (IS_TMP_VAR|IS_VAR|IS_CV) && opline->opcode != ZEND_INSTANCEOF - && opline->opcode != ZEND_UNSET_STATIC_PROP) { + && opline->opcode != ZEND_UNSET_STATIC_PROP + && opline->opcode != ZEND_FE_FETCH_R + && opline->opcode != ZEND_FE_FETCH_RW) { zval *zv = EX_VAR(opline->op2.var); uint8_t flags = 0; -- 2.50.1