Skip to content

Commit 8ba7878

Browse files
committed
Add an assertion
1 parent 7cef66c commit 8ba7878

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,13 @@ int zend_optimizer_replace_by_const(zend_op_array *op_array,
514514
return 0;
515515
}
516516
MAKE_NOP(opline);
517+
517518
/* zend_handle_loops_and_finally may inserts other oplines */
518519
do {
519520
++opline;
520521
} while (opline->opcode != ZEND_RETURN && opline->opcode != ZEND_RETURN_BY_REF);
522+
ZEND_ASSERT(ZEND_OP1(opline).var == var);
523+
521524
break;
522525
}
523526
default:

0 commit comments

Comments
 (0)