From: Dmitry Stogov Date: Fri, 1 Apr 2016 17:29:54 +0000 (+0300) Subject: fixed type inference mistake (typo) X-Git-Tag: php-7.1.0alpha1~390^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82050dfd3cba70b866da871fa7cc05232cfabf63;p=php fixed type inference mistake (typo) --- diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 5f345699c6..d7f2f26dad 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -2314,7 +2314,7 @@ static void zend_update_type_info(const zend_op_array *op_array, if ((t1 & MAY_BE_STRING) && (t2 & MAY_BE_STRING)) { tmp |= MAY_BE_STRING; } - if ((t1 & (MAY_BE_ANY-MAY_BE_STRING)) || (t1 & (MAY_BE_ANY-MAY_BE_STRING))) { + if ((t1 & (MAY_BE_ANY-MAY_BE_STRING)) || (t2 & (MAY_BE_ANY-MAY_BE_STRING))) { tmp |= MAY_BE_LONG; } UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def);