com php-src: Fixed for RESOURCE too: ext/opcache/Optimizer/zend _inference.c
| From: | Xinchen Hui | Date: | Sat, 19 Aug 2017 10:55:56 +0000 |
| Subject: | com php-src: Fixed for RESOURCE too: ext/opcache/Optimizer/zend _inference.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99103@lists.php.net to get a copy of this message | ||
Commit: 2e002eaf70101cc69a8014c19c8ac77914973020
Author: Xinchen Hui <laruence@gmail.com> Sat, 19 Aug 2017 18:55:56 +0800
Parents: 4b6345a3ae1dd1de9db542ebc03733596466eb1a
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2e002eaf70101cc69a8014c19c8ac77914973020
Log:
Fixed for RESOURCE too
Changed paths:
M ext/opcache/Optimizer/zend_inference.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c
index d314f5b..b82072e 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);
}
}