Skip to content

Commit be0d912

Browse files
committed
Avoid recording of uninitialized variable
1 parent ae2b214 commit be0d912

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/opcache/jit/zend_jit_vm_helpers.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,9 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex,
654654
}
655655
if (opline->op2_type & (IS_TMP_VAR|IS_VAR|IS_CV)
656656
&& opline->opcode != ZEND_INSTANCEOF
657-
&& opline->opcode != ZEND_UNSET_STATIC_PROP) {
657+
&& opline->opcode != ZEND_UNSET_STATIC_PROP
658+
&& opline->opcode != ZEND_FE_FETCH_R
659+
&& opline->opcode != ZEND_FE_FETCH_RW) {
658660
zval *zv = EX_VAR(opline->op2.var);
659661
uint8_t flags = 0;
660662

0 commit comments

Comments
 (0)