Skip to content

Commit 882aaba

Browse files
committed
Handle ASSIGN_STATIC_PROP compound assign in SCCP
1 parent bac5425 commit 882aaba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/opcache/Optimizer/sccp.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ static void sccp_visit_instr(scdf_ctx *scdf, zend_op *opline, zend_ssa_op *ssa_o
14001400
if (op2) {
14011401
SKIP_IF_TOP(op2);
14021402
}
1403-
if (!opline->extended_value) {
1403+
if (opline->extended_value == 0) {
14041404
if (zend_optimizer_eval_binary_op(&zv, zend_compound_assign_to_binary_op(opline->opcode), op1, op2) == SUCCESS) {
14051405
SET_RESULT(op1, &zv);
14061406
SET_RESULT(result, &zv);
@@ -1482,6 +1482,11 @@ static void sccp_visit_instr(scdf_ctx *scdf, zend_op *opline, zend_ssa_op *ssa_o
14821482
zval_ptr_dtor_nogc(&zv);
14831483
}
14841484
}
1485+
} else if (opline->extended_value == ZEND_ASSIGN_STATIC_PROP) {
1486+
SET_RESULT_BOT(result);
1487+
break;
1488+
} else {
1489+
ZEND_ASSERT(0 && "Invalid compound assignment kind");
14851490
}
14861491
SET_RESULT_BOT(result);
14871492
SET_RESULT_BOT(op1);

0 commit comments

Comments
 (0)