Skip to content

Commit

Permalink
Fixed type-info for ZEND_FETCH_DIIM_UNSET
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Aug 19, 2017
1 parent 9b327ff commit ea0df07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ext/opcache/Optimizer/zend_inference.c
Original file line number Diff line number Diff line change
Expand Up @@ -3004,6 +3004,13 @@ static int zend_update_type_info(const zend_op_array *op_array,
tmp |= MAY_BE_ARRAY_KEY_STRING;
}
}
} else if (opline->opcode == ZEND_FETCH_DIM_UNSET) {
if (t1 & MAY_BE_ARRAY) {
tmp |= MAY_BE_RC1;
}
if (t1 & MAY_BE_OBJECT) {
tmp |= t1 & MAY_BE_RCN;
}
}
j = ssa_vars[ssa_ops[i].result_def].use_chain;
while (j >= 0) {
Expand Down

0 comments on commit ea0df07

Please sign in to comment.