Skip to content

Commit e67156e

Browse files
committed
Add missing rc1/rcn to return type initialization
1 parent dcac654 commit e67156e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/Optimizer/zend_inference.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4027,7 +4027,8 @@ void zend_func_return_info(const zend_op_array *op_array,
40274027

40284028
if (!ret->type) {
40294029
/* We will intersect the type later. */
4030-
ret->type = MAY_BE_REF | MAY_BE_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_KEY_ANY;
4030+
ret->type = MAY_BE_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_KEY_ANY
4031+
| MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF;
40314032
}
40324033

40334034
for (j = 0; j < blocks_count; j++) {

0 commit comments

Comments
 (0)