Skip to content

Commit faf1082

Browse files
committed
Optimizer/zend_dump: Fix printing of the exception table
A newline was missing for finally blocks.
1 parent fc467dc commit faf1082

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Zend/Optimizer/zend_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ ZEND_API void zend_dump_op_array(const zend_op_array *op_array, uint32_t dump_fl
11641164
}
11651165
if (op_array->try_catch_array[i].finally_end) {
11661166
fprintf(stderr,
1167-
", %04u",
1167+
", %04u\n",
11681168
op_array->try_catch_array[i].finally_end);
11691169
} else {
11701170
fprintf(stderr, ", -\n");

ext/opcache/tests/opt/gh18107_1.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ $_main:
4141
0011 FAST_RET T5
4242
EXCEPTION TABLE:
4343
0006, -, 0007, 0011
44+
4445
Fatal error: Uncaught Exception: Should happen in %s:%d
4546
Stack trace:
4647
#0 {main}

ext/opcache/tests/opt/gh18107_2.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ $_main:
4848
0015 RETURN int(1)
4949
EXCEPTION TABLE:
5050
0006, 0006, 0010, 0014
51+
5152
Fatal error: Uncaught Exception: Should happen in %s:%d
5253
Stack trace:
5354
#0 {main}

0 commit comments

Comments
 (0)