Skip to content

Commit ec5882e

Browse files
committed
Fix GH-9626: JIT type assertion failure in Symfony community build
1 parent 3cce496 commit ec5882e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6159,6 +6159,9 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
61596159
goto jit_failure;
61606160
}
61616161
if ((p+1)->op == ZEND_JIT_TRACE_INIT_CALL && (p+1)->func) {
6162+
if (opline->opcode == ZEND_NEW && ssa_op->result_def >= 0) {
6163+
SET_STACK_TYPE(stack, EX_VAR_TO_NUM(opline->result.var), IS_OBJECT, 1);
6164+
}
61626165
if (zend_jit_may_be_polymorphic_call(opline) ||
61636166
zend_jit_may_be_modified((p+1)->func, op_array)) {
61646167
if (!zend_jit_init_fcall_guard(&dasm_state, 0, (p+1)->func, opline+1)) {

0 commit comments

Comments
 (0)