Skip to content

Commit 2e002ea

Browse files
committed
Fixed for RESOURCE too
1 parent 4b6345a commit 2e002ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3008,7 +3008,7 @@ static int zend_update_type_info(const zend_op_array *op_array,
30083008
if (t1 & MAY_BE_ARRAY) {
30093009
tmp |= MAY_BE_RC1;
30103010
}
3011-
if (t1 & MAY_BE_OBJECT) {
3011+
if (t1 & (MAY_BE_OBJECT|MAY_BE_RESOURCE)) {
30123012
tmp |= t1 & (MAY_BE_RC1|MAY_BE_RCN);
30133013
}
30143014
}

0 commit comments

Comments
 (0)