Skip to content

Commit b1e4883

Browse files
committed
Don't print try-catch offset for FAST_RET w/o ev
1 parent 7899498 commit b1e4883

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/opcache/Optimizer/zend_dump.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ static void zend_dump_unused_op(const zend_op *opline, znode_op op, uint32_t fla
9292
if (ZEND_VM_OP_NUM == (flags & ZEND_VM_OP_MASK)) {
9393
fprintf(stderr, " %u", op.num);
9494
} else if (ZEND_VM_OP_TRY_CATCH == (flags & ZEND_VM_OP_MASK)) {
95-
fprintf(stderr, " try-catch(%u)", op.num);
95+
if (opline->opcode != ZEND_FAST_RET || opline->extended_value) {
96+
fprintf(stderr, " try-catch(%u)", op.num);
97+
}
9698
} else if (ZEND_VM_OP_LIVE_RANGE == (flags & ZEND_VM_OP_MASK)) {
9799
if (opline->extended_value & ZEND_FREE_ON_RETURN) {
98100
fprintf(stderr, " live-range(%u)", op.num);

0 commit comments

Comments
 (0)