Skip to content

Commit

Permalink
Fixed for RESOURCE too
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Aug 19, 2017
1 parent 4b6345a commit 2e002ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opcache/Optimizer/zend_inference.c
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,7 @@ static int zend_update_type_info(const zend_op_array *op_array,
if (t1 & MAY_BE_ARRAY) {
tmp |= MAY_BE_RC1;
}
if (t1 & MAY_BE_OBJECT) {
if (t1 & (MAY_BE_OBJECT|MAY_BE_RESOURCE)) {
tmp |= t1 & (MAY_BE_RC1|MAY_BE_RCN);
}
}
Expand Down

0 comments on commit 2e002ea

Please sign in to comment.