Skip to content

Commit 38d50a9

Browse files
committed
Take into account the existing inferred type information for ZEND_ADD_ARRAY_ELEMENT
1 parent 55514a1 commit 38d50a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3091,7 +3091,7 @@ static zend_always_inline int _zend_update_type_info(
30913091
if (opline->opcode == ZEND_INIT_ARRAY) {
30923092
arr_type = 0;
30933093
} else {
3094-
arr_type = RES_USE_INFO();
3094+
arr_type = RES_USE_INFO() | RES_INFO();
30953095
}
30963096
tmp = MAY_BE_RC1|MAY_BE_ARRAY|arr_type;
30973097
if (opline->op1_type != IS_UNUSED

0 commit comments

Comments
 (0)