com php-src: Fixed type-infer: ext/opcache/Optimizer/zend_inf erence.c

From: Date: Mon, 21 Aug 2017 08:35:07 +0000
Subject: com php-src: Fixed type-infer: ext/opcache/Optimizer/zend_inf erence.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99117@lists.php.net to get a copy of this message
Commit: ee26c1efbc1768031782de83620c37b0f92db877 Author: Xinchen Hui <laruence@gmail.com> Mon, 21 Aug 2017 16:35:07 +0800 Parents: 799b52e87ff487ae46fabee3715084d1e2c95efe Branches: PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ee26c1efbc1768031782de83620c37b0f92db877 Log: Fixed type-infer 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 b82072e..ef4c41b 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -3187,10 +3187,10 @@ static int zend_update_type_info(const zend_op_array *op_array, break; case ZEND_GET_CLASS: case ZEND_GET_CALLED_CLASS: - UPDATE_SSA_TYPE(MAY_BE_FALSE|MAY_BE_STRING, ssa_ops[i].result_def); + UPDATE_SSA_TYPE(MAY_BE_FALSE|MAY_BE_STRING|MAY_BE_RCN, ssa_ops[i].result_def); break; case ZEND_GET_TYPE: - UPDATE_SSA_TYPE(MAY_BE_STRING, ssa_ops[i].result_def); + UPDATE_SSA_TYPE(MAY_BE_STRING|MAY_BE_RC1|MAY_BE_RCN, ssa_ops[i].result_def); break; case ZEND_TYPE_CHECK: case ZEND_DEFINED:

« previous php.cvs (#99117) next »