Skip to content

Commit 176b79f

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix incorrect trace type inference
2 parents b38c57b + 44a7016 commit 176b79f

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
@@ -6299,7 +6299,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
62996299
}
63006300
}
63016301
if (ssa_op->op1_def >= 0
6302-
&& (opline->opcode != ZEND_QM_ASSIGN
6302+
&& ((opline->opcode != ZEND_QM_ASSIGN && opline->opcode != ZEND_CAST)
63036303
|| opline->result_type != IS_CV
63046304
|| opline->result.var != opline->op1.var)) {
63056305
zend_uchar type = IS_UNKNOWN;

0 commit comments

Comments
 (0)