Skip to content

Commit 9771343

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Fixed MAY_BE_INDIRECT inference
2 parents fe27c53 + 3fb1b08 commit 9771343

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,6 +1949,9 @@ uint32_t zend_array_element_type(uint32_t t1, zend_uchar op_type, int write, int
19491949
} else {
19501950
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;
19511951
}
1952+
if (write) {
1953+
tmp |= MAY_BE_INDIRECT;
1954+
}
19521955
}
19531956
if (t1 & MAY_BE_ARRAY) {
19541957
if (insert) {

0 commit comments

Comments
 (0)