summaryrefslogtreecommitdiffstats
path: root/4.patch
diff options
context:
space:
mode:
Diffstat (limited to '4.patch')
-rw-r--r--4.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/4.patch b/4.patch
new file mode 100644
index 0000000..1e22a0a
--- /dev/null
+++ b/4.patch
@@ -0,0 +1,31 @@
+From f907913b8cc9c06e7703fdc5093464510a9c9793 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+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();
++
+ }
+ /* }}} */
+