summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-19 10:04:56 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-19 10:04:56 +0100
commite67156e967950b4ed7bbb7993ccff574d430b28d (patch)
tree1f0815003188e031c3bd12c513fff5dd284fd68a /Zend
parentdcac654fd56a2cecec0c187ba061ecc82bbc9031 (diff)
downloadphp-git-e67156e967950b4ed7bbb7993ccff574d430b28d.tar.gz
Add missing rc1/rcn to return type initialization
Diffstat (limited to 'Zend')
-rw-r--r--Zend/Optimizer/zend_inference.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/Optimizer/zend_inference.c b/Zend/Optimizer/zend_inference.c
index e5d476d01d..8602e7cb03 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++) {