1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Optimizer/zend_dump: Fix printing of the exception table (#19634)

A newline was missing for finally blocks.
This commit is contained in:
Tim Düsterhus
2025-08-29 19:58:44 +02:00
committed by GitHub
parent 6ba5f7e195
commit 914f9ad49b
3 changed files with 3 additions and 1 deletions

View File

@@ -1164,7 +1164,7 @@ ZEND_API void zend_dump_op_array(const zend_op_array *op_array, uint32_t dump_fl
}
if (op_array->try_catch_array[i].finally_end) {
fprintf(stderr,
", %04u",
", %04u\n",
op_array->try_catch_array[i].finally_end);
} else {
fprintf(stderr, ", -\n");

View File

@@ -41,6 +41,7 @@ $_main:
0011 FAST_RET T5
EXCEPTION TABLE:
0006, -, 0007, 0011
Fatal error: Uncaught Exception: Should happen in %s:%d
Stack trace:
#0 {main}

View File

@@ -48,6 +48,7 @@ $_main:
0015 RETURN int(1)
EXCEPTION TABLE:
0006, 0006, 0010, 0014
Fatal error: Uncaught Exception: Should happen in %s:%d
Stack trace:
#0 {main}