From: Xinchen Hui Date: Sat, 19 Aug 2017 10:55:56 +0000 (+0800) Subject: Fixed for RESOURCE too X-Git-Tag: php-7.2.0RC1~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e002eaf70101cc69a8014c19c8ac77914973020;p=php Fixed for RESOURCE too --- diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index d314f5bff3..b82072e56e 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -3008,7 +3008,7 @@ static int zend_update_type_info(const zend_op_array *op_array, if (t1 & MAY_BE_ARRAY) { tmp |= MAY_BE_RC1; } - if (t1 & MAY_BE_OBJECT) { + if (t1 & (MAY_BE_OBJECT|MAY_BE_RESOURCE)) { tmp |= t1 & (MAY_BE_RC1|MAY_BE_RCN); } }