Skip to content

Commit

Permalink
Avoid recording of uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jul 21, 2020
1 parent ae2b214 commit be0d912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/opcache/jit/zend_jit_vm_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit be0d912

Please sign in to comment.