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:
Nikita Popov 2018-06-25 14:27:02 +02:00
parent 490a49d0bb
commit 102bcb5c05

View File

@ -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 {