Skip to content

Commit 2eb6e02

Browse files
committed
Merge branch 'master' into jit-dynasm
* master: More accurate reference counting inference
2 parents 61aa611 + e164b38 commit 2eb6e02

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2978,13 +2978,10 @@ static int zend_update_type_info(const zend_op_array *op_array,
29782978
}
29792979
tmp |= MAY_BE_ARRAY | MAY_BE_RC1;
29802980
}
2981-
if (t1 & MAY_BE_STRING) {
2982-
tmp |= MAY_BE_RC1;
2983-
}
2984-
if (t1 & MAY_BE_ARRAY) {
2981+
if (t1 & (MAY_BE_STRING|MAY_BE_ARRAY)) {
29852982
tmp |= MAY_BE_RC1;
29862983
if (opline->opcode == ZEND_FETCH_DIM_FUNC_ARG) {
2987-
tmp |= MAY_BE_RCN;
2984+
tmp |= t1 & MAY_BE_RCN;
29882985
}
29892986
}
29902987
if (t1 & (MAY_BE_OBJECT|MAY_BE_RESOURCE)) {

0 commit comments

Comments
 (0)