Skip to content

Commit 2eb6a54

Browse files
committed
Fix typo in compound dim assign op inference
Thankfully a harmless one, just makes inference results worse.
1 parent ae04110 commit 2eb6a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2372,7 +2372,7 @@ static int zend_update_type_info(const zend_op_array *op_array,
23722372

23732373
if (opline->extended_value == ZEND_ASSIGN_DIM) {
23742374
if (opline->op1_type == IS_CV) {
2375-
orig = assign_dim_result_type(orig, OP2_INFO(), tmp, opline->op1_type);
2375+
orig = assign_dim_result_type(orig, OP2_INFO(), tmp, opline->op2_type);
23762376
UPDATE_SSA_TYPE(orig, ssa_ops[i].op1_def);
23772377
COPY_SSA_OBJ_TYPE(ssa_ops[i].op1_use, ssa_ops[i].op1_def);
23782378
}

0 commit comments

Comments
 (0)