show versions in MINFO
authorMichael Wallner <mike@php.net>
Wed, 2 Mar 2022 15:12:35 +0000 (16:12 +0100)
committerMichael Wallner <mike@php.net>
Tue, 29 Mar 2022 12:05:07 +0000 (14:05 +0200)
see also https://github.com/amzn/ion-c/issues/285

ion.c

diff --git a/ion.c b/ion.c
index 017b5ad4bbe1428072a7134817e22d353a005a74..85c1923b3eb454f88cb0ffc3888dc3d52dfab7a9 100644 (file)
--- a/ion.c
+++ b/ion.c
@@ -1895,6 +1895,8 @@ PHP_MINFO_FUNCTION(ion)
 {
        php_info_print_table_start();
        php_info_print_table_header(2, "ion support", "enabled");
+       php_info_print_table_row(2, "ion version", PHP_ION_VERSION);
+       php_info_print_table_row(2, "ion-c version", "unknown");
        php_info_print_table_end();
 }