Skip to content

Commit e7c85fc

Browse files
committed
Merge branch 'PHP-7.2'
* PHP-7.2: Fixed for RESOURCE too
2 parents 6b71a12 + 2e002ea commit e7c85fc

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)