com php-src: Fix inference (result of ++/-- can't be a reference): ext/opcache/Optimizer/zend_inference.c

From: Date: Mon, 04 Sep 2017 17:40:42 +0000
Subject: com php-src: Fix inference (result of ++/-- can't be a reference): ext/opcache/Optimizer/zend_inference.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99248@lists.php.net to get a copy of this message
Commit: 296d84405848ac2b46dd3a07ee61c1c99b5fd5ca Author: Dmitry Stogov <dmitry@zend.com> Mon, 4 Sep 2017 20:40:42 +0300 Parents: 781e78f21013a8703efe200de2f6cb7a3fab0092 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=296d84405848ac2b46dd3a07ee61c1c99b5fd5ca Log: Fix inference (result of ++/-- can't be a reference) 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 d719837..5b6de7c 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -2577,7 +2577,7 @@ static int zend_update_type_info(const zend_op_array *op_array, } if (ssa_ops[i].result_def >= 0) { // TODO: ??? - tmp = MAY_BE_REF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF; + tmp = MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF; UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def); } break;

« previous php.cvs (#99248) next »