com php-src: Fixed MAY_BE_INDIRECT inference: ext/opc ache/Optimizer/zend_inference.c

From: Date: Mon, 16 Nov 2020 15:17:05 +0000
Subject: com php-src: Fixed MAY_BE_INDIRECT inference: ext/opc ache/Optimizer/zend_inference.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-114152@lists.php.net to get a copy of this message
Commit: 3fb1b0862c3742a1ef2d491ce8c9045bf2abc87c Author: Dmitry Stogov <dmitry@zend.com> Mon, 16 Nov 2020 18:17:05 +0300 Parents: c351768e4f6f7061669723fee83c085e631f30d5 Branches: PHP-8.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3fb1b0862c3742a1ef2d491ce8c9045bf2abc87c Log: Fixed MAY_BE_INDIRECT inference 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 9bb11096d89..56180bfb433 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -1949,6 +1949,9 @@ uint32_t zend_array_element_type(uint32_t t1, zend_uchar op_type, int write, int } else { tmp |= MAY_BE_ANY | MAY_BE_REF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF; } + if (write) { + tmp |= MAY_BE_INDIRECT; + } } if (t1 & MAY_BE_ARRAY) { if (insert) {

« previous php.cvs (#114152) next »