summaryrefslogtreecommitdiffstats
path: root/0001-add-extension-version-in-phpinfo.patch
blob: 44af7f26f5ea0128c0616bedfca37f4469fc7857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 6cf8c800f2926b65867b10dfe582bbb4596d1b7e Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@php.net>
Date: Wed, 2 Dec 2020 11:37:43 +0100
Subject: [PATCH 1/2] add extension version in phpinfo

---
 mcrypt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mcrypt.c b/mcrypt.c
index 20f6aae..b834ffe 100644
--- a/mcrypt.c
+++ b/mcrypt.c
@@ -480,7 +480,8 @@ PHP_MINFO_FUNCTION(mcrypt) /* {{{ */
 	php_info_print_table_start();
 	php_info_print_table_header(2, "mcrypt support", "enabled");
 	php_info_print_table_header(2, "mcrypt_filter support", "enabled");
-	php_info_print_table_row(2, "Version", LIBMCRYPT_VERSION);
+	php_info_print_table_row(2, "Extension version", PHP_MCRYPT_VERSION);
+	php_info_print_table_row(2, "Library version", LIBMCRYPT_VERSION);
 	php_info_print_table_row(2, "Api No", mcrypt_api_no);
 	php_info_print_table_row(2, "Supported ciphers", ZSTR_VAL(tmp1.s));
 	php_info_print_table_row(2, "Supported modes", ZSTR_VAL(tmp2.s));
-- 
2.31.1