Skip to content

Commit 1d98bd4

Browse files
committed
Fixed incorrect type inference
1 parent 6b769a3 commit 1d98bd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,8 +2539,8 @@ static zend_always_inline int _zend_update_type_info(
25392539
}
25402540
} else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) {
25412541
if (opline->op1_type == IS_CV) {
2542-
tmp = (orig & (MAY_BE_REF|MAY_BE_OBJECT))|MAY_BE_RC1|MAY_BE_RCN;
2543-
UPDATE_SSA_TYPE(tmp, ssa_op->op1_def);
2542+
orig = (orig & (MAY_BE_REF|MAY_BE_OBJECT))|MAY_BE_RC1|MAY_BE_RCN;
2543+
UPDATE_SSA_TYPE(orig, ssa_op->op1_def);
25442544
COPY_SSA_OBJ_TYPE(ssa_op->op1_use, ssa_op->op1_def);
25452545
}
25462546
} else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP) {

0 commit comments

Comments
 (0)