Skip to content

Commit 298aa74

Browse files
committed
Fix incorrect trace type inference when function SSA is not available.
Type of argument CV with type hint is checked only via execution of the corresponding RECV or RECV_INIT instruction.
1 parent 3280c70 commit 298aa74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
15351535
} else {
15361536
ssa_vars[i].alias = zend_jit_var_may_alias(op_array, ssa, i);
15371537
}
1538-
if (op_array->arg_info) {
1538+
if (op_array->arg_info && i < trace_buffer[1].opline - op_array->opcodes) {
15391539
zend_arg_info *arg_info = &op_array->arg_info[i];
15401540
zend_class_entry *ce;
15411541
uint32_t tmp = zend_fetch_arg_info_type(script, arg_info, &ce);

0 commit comments

Comments
 (0)