From f907913b8cc9c06e7703fdc5093464510a9c9793 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 28 Oct 2022 09:18:27 +0200 Subject: [PATCH] add backend name/version in info --- rnp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rnp.c b/rnp.c index 3c89a7a..d326f4c 100644 --- a/rnp.c +++ b/rnp.c @@ -2188,11 +2188,17 @@ PHP_RINIT_FUNCTION(rnp) /* {{{ PHP_MINFO_FUNCTION */ PHP_MINFO_FUNCTION(rnp) { + char *backend = NULL; + php_info_print_table_start(); php_info_print_table_header(2, "rnp support", "enabled"); php_info_print_table_row(2, "rnp extension version", PHP_RNP_VERSION); php_info_print_table_row(2, "rnp library version", rnp_version_string()); + spprintf(&backend, 0, "%s version %s", rnp_backend_string(), rnp_backend_version()); + php_info_print_table_row(2, "rnp backend", backend); + efree(backend); php_info_print_table_end(); + } /* }}} */