]> granicus.if.org Git - php/commitdiff
Added missed ~
authorDmitry Stogov <dmitry@zend.com>
Mon, 25 Sep 2017 09:22:35 +0000 (12:22 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 25 Sep 2017 09:22:35 +0000 (12:22 +0300)
ext/opcache/Optimizer/zend_inference.c

index ecfb14ca370a69bd52cfd77068ff95268d274ed1..fecd68fa2e6a9cf07b7ab743c65f39a80a2f8558 100644 (file)
@@ -2333,7 +2333,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) {