From e67156e967950b4ed7bbb7993ccff574d430b28d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 19 Mar 2021 10:04:56 +0100 Subject: [PATCH] Add missing rc1/rcn to return type initialization --- Zend/Optimizer/zend_inference.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zend/Optimizer/zend_inference.c b/Zend/Optimizer/zend_inference.c index e5d476d01d5..8602e7cb039 100644 --- a/Zend/Optimizer/zend_inference.c +++ b/Zend/Optimizer/zend_inference.c @@ -4027,7 +4027,8 @@ void zend_func_return_info(const zend_op_array *op_array, if (!ret->type) { /* We will intersect the type later. */ - ret->type = MAY_BE_REF | MAY_BE_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_KEY_ANY; + ret->type = MAY_BE_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_KEY_ANY + | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF; } for (j = 0; j < blocks_count; j++) {