Skip to content

Commit ea0df07

Browse files
committed
Fixed type-info for ZEND_FETCH_DIIM_UNSET
1 parent 9b327ff commit ea0df07

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3004,6 +3004,13 @@ static int zend_update_type_info(const zend_op_array *op_array,
30043004
tmp |= MAY_BE_ARRAY_KEY_STRING;
30053005
}
30063006
}
3007+
} else if (opline->opcode == ZEND_FETCH_DIM_UNSET) {
3008+
if (t1 & MAY_BE_ARRAY) {
3009+
tmp |= MAY_BE_RC1;
3010+
}
3011+
if (t1 & MAY_BE_OBJECT) {
3012+
tmp |= t1 & MAY_BE_RCN;
3013+
}
30073014
}
30083015
j = ssa_vars[ssa_ops[i].result_def].use_chain;
30093016
while (j >= 0) {

0 commit comments

Comments
 (0)