From: Scott MacVicar Date: Thu, 18 Sep 2008 16:02:09 +0000 (+0000) Subject: Show the library version currently loaded as well as the version the extension was... X-Git-Tag: BEFORE_HEAD_NS_CHANGE~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f994f24c58f91d074f90cdca1307b5a564d0e363;p=php 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/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(); } /* }}} */