From f994f24c58f91d074f90cdca1307b5a564d0e363 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Thu, 18 Sep 2008 16:02:09 +0000 Subject: [PATCH] Show the library version currently loaded as well as the version the extension was compiled with. Useful for checking PHP is using the latest version. --- ext/openssl/openssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 7a3341de3c..8cf144f1de 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1092,7 +1092,8 @@ PHP_MINFO_FUNCTION(openssl) { php_info_print_table_start(); php_info_print_table_row(2, "OpenSSL support", "enabled"); - php_info_print_table_row(2, "OpenSSL Version", OPENSSL_VERSION_TEXT); + php_info_print_table_row(2, "OpenSSL Library Version", SSLeay_version(SSLEAY_VERSION)); + php_info_print_table_row(2, "OpenSSL Header Version", OPENSSL_VERSION_TEXT); php_info_print_table_end(); } /* }}} */ -- 2.50.1