diff options
author | Dmitry Stogov <dmitry@zend.com> | 2020-11-16 18:17:05 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2020-11-16 18:17:05 +0300 |
commit | 3fb1b0862c3742a1ef2d491ce8c9045bf2abc87c (patch) | |
tree | b7ca6180eedeb52ce297674107ced6035dbb4a69 | |
parent | c351768e4f6f7061669723fee83c085e631f30d5 (diff) | |
download | php-git-3fb1b0862c3742a1ef2d491ce8c9045bf2abc87c.tar.gz |
Fixed MAY_BE_INDIRECT inference
-rw-r--r-- | ext/opcache/Optimizer/zend_inference.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 9bb11096d8..56180bfb43 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) { |