Skip to content

Commit

Permalink
Fixed MAY_BE_INDIRECT inference
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Nov 16, 2020
1 parent c351768 commit 3fb1b08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/opcache/Optimizer/zend_inference.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3fb1b08

Please sign in to comment.