summaryrefslogtreecommitdiff
path: root/ext/opcache/Optimizer/zend_inference.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-09-25 12:23:01 +0300
committerDmitry Stogov <dmitry@zend.com>2017-09-25 12:23:01 +0300
commit2a33e357cd294b6625aa0d0c379dc5ebac55c0aa (patch)
treea31a2036488a0f9d8689c34442d7fa8ae8ea2c0f /ext/opcache/Optimizer/zend_inference.c
parent801cdb8945a377b7c556835651407dbd96b448b7 (diff)
parent550595c085e9e887b449659725388f98c4cd5d4a (diff)
downloadphp-git-2a33e357cd294b6625aa0d0c379dc5ebac55c0aa.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Added missed ~
Diffstat (limited to 'ext/opcache/Optimizer/zend_inference.c')
-rw-r--r--ext/opcache/Optimizer/zend_inference.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c
index b897b42a2b..fcce3ba087 100644
--- a/ext/opcache/Optimizer/zend_inference.c
+++ b/ext/opcache/Optimizer/zend_inference.c
@@ -2332,7 +2332,7 @@ static int zend_update_type_info(const zend_op_array *op_array,
if (opline->op1_type == IS_CV) {
if (!(orig & MAY_BE_REF)) {
if (orig & (MAY_BE_UNDEF|MAY_BE_NULL|MAY_BE_FALSE)) {
- orig &= (MAY_BE_UNDEF|MAY_BE_NULL|MAY_BE_FALSE);
+ orig &= ~(MAY_BE_UNDEF|MAY_BE_NULL|MAY_BE_FALSE);
orig |= MAY_BE_OBJECT | MAY_BE_RC1 | MAY_BE_RCN;
}
if (orig & MAY_BE_OBJECT) {