Skip to content

Commit edf5c19

Browse files
committed
Fixed incorrect FETCH_THIS optimization
1 parent bd321df commit edf5c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5332,7 +5332,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
53325332
goto done;
53335333
case ZEND_FETCH_THIS:
53345334
delayed_fetch_this = 0;
5335-
if (ssa_op->result_def >= 0) {
5335+
if (ssa_op->result_def >= 0 && opline->result_type != IS_CV) {
53365336
if (zend_jit_may_delay_fetch_this(ssa, ssa_opcodes, ssa_op->result_def)) {
53375337
ssa->var_info[ssa_op->result_def].delayed_fetch_this = 1;
53385338
delayed_fetch_this = 1;

0 commit comments

Comments
 (0)