mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Update array_element_type inference for previous change
LIST_R and DIM_IS return value can't be MAY_BE_REF anymore.
This commit is contained in:
parent
490a49d0bb
commit
102bcb5c05
@ -2059,7 +2059,7 @@ uint32_t zend_array_element_type(zend_op *opline, uint32_t t1)
|
||||
tmp |= MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
|
||||
}
|
||||
if (t1 & MAY_BE_ARRAY_OF_REF) {
|
||||
if (opline->opcode == ZEND_FETCH_DIM_R) {
|
||||
if (!write) {
|
||||
/* can't be REF because of ZVAL_COPY_DEREF() usage */
|
||||
tmp |= MAY_BE_RC1 | MAY_BE_RCN;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user