summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2008-09-18 16:09:19 +0000
committerScott MacVicar <scottmac@php.net>2008-09-18 16:09:19 +0000
commitba2f5078717dd281cff419a79145d74dde0e1180 (patch)
tree096e77cdc24ce41d507e8e2eee3dd9718bcbe183
parenteaec817e1b9ae894b2149148ae32ade92d858d55 (diff)
downloadphp-git-ba2f5078717dd281cff419a79145d74dde0e1180.tar.gz
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.
-rw-r--r--NEWS2
-rw-r--r--ext/openssl/openssl.c3
2 files changed, 4 insertions, 1 deletions
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();
}
/* }}} */