diff --git a/ChangeLog b/ChangeLog index 12d656d6df..f26b4052cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -34,6 +34,7 @@ phpMyAdmin - ChangeLog + issue #11796 Use modals for displaying forms in db structure page + issue #11789 Show MySQL error messages in user language + issue Add 'ssl_verify' configuration directive for self-signed certificates with mysqlnd and PHP >= 5.6 ++ issue #11874 Show more used PHP extensions 4.5.5.0 (not yet released) - issue Undefined index: is_ajax_request diff --git a/index.php b/index.php index 14a6832ac2..4aa97dbc57 100644 --- a/index.php +++ b/index.php @@ -335,13 +335,13 @@ if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { ); $php_ext_string = __('PHP extension:') . ' '; - if (PMA\libraries\DatabaseInterface::checkDbExtension('mysqli')) { - $extension = 'mysqli'; - } else { - $extension = 'mysql'; + + $extensions = PMA\libraries\Util::listPHPExtensions(); + + foreach ($extensions as $extension) { + $php_ext_string .= ' ' . $extension + . PMA\libraries\Util::showPHPDocu('book.' . $extension . '.php'); } - $php_ext_string .= $extension . ' ' - . PMA\libraries\Util::showPHPDocu('book.' . $extension . '.php'); PMA_printListItem( $php_ext_string, diff --git a/libraries/Util.php b/libraries/Util.php index 9140127e27..cb3557124b 100644 --- a/libraries/Util.php +++ b/libraries/Util.php @@ -4957,5 +4957,30 @@ class Util } return $tables; } + + /** + * Returs list of used PHP extensions. + * + * @return array of strings + */ + public static function listPHPExtensions() + { + $result = array(); + if (DatabaseInterface::checkDbExtension('mysqli')) { + $result[] = 'mysqli'; + } else { + $result[] = 'mysql'; + } + + if (extension_loaded('curl')) { + $result[] = 'curl'; + } + + if (extension_loaded('mbstring')) { + $result[] = 'mbstring'; + } + + return $result; + } }