Skip to content

Commit 44a7016

Browse files
committed
Fix incorrect trace type inference
Fixes GH-12365
1 parent 5a8f96b commit 44a7016

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
@@ -6324,7 +6324,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
63246324
}
63256325
}
63266326
if (ssa_op->op1_def >= 0
6327-
&& (opline->opcode != ZEND_QM_ASSIGN
6327+
&& ((opline->opcode != ZEND_QM_ASSIGN && opline->opcode != ZEND_CAST)
63286328
|| opline->result_type != IS_CV
63296329
|| opline->result.var != opline->op1.var)) {
63306330
zend_uchar type = IS_UNKNOWN;

0 commit comments

Comments
 (0)