From: Scott MacVicar Date: Thu, 18 Sep 2008 16:09:19 +0000 (+0000) Subject: MFH: Show the library version currently loaded as well as the version the extension... X-Git-Tag: BEFORE_NS_RULES_CHANGE~360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba2f5078717dd281cff419a79145d74dde0e1180;p=php MFH: 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. --- diff --git a/NEWS b/NEWS index 2b8a3267a3..fe5401fffb 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ PHP NEWS - Changed error level E_ERROR into E_WARNING in Soap extension methods parameter validation. (Felipe) +- Changed openssl info to show the shared library version number. (Scott) + - Fixed bug causing the algorithm parameter of mhash() to be modified. (Scott) - Fixed bug #46106 (Memory leaks when using global statement). (Dmitry) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index fff19cee5d..2dc2be7748 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(); } /* }}} */