com php-src: fixed type inference mistake (typo): ext/opcache/O ptimizer/zend_inference.c

From: Date: Fri, 01 Apr 2016 17:29:54 +0000
Subject: com php-src: fixed type inference mistake (typo): ext/opcache/O ptimizer/zend_inference.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91581@lists.php.net to get a copy of this message
Commit: 82050dfd3cba70b866da871fa7cc05232cfabf63 Author: Dmitry Stogov <dmitry@zend.com> Fri, 1 Apr 2016 20:29:54 +0300 Parents: 34d3827ecc0e069d42385296e63e122b056b267b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=82050dfd3cba70b866da871fa7cc05232cfabf63 Log: fixed type inference mistake (typo) 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 5f34569..d7f2f26 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);

« previous php.cvs (#91581) next »