From b1ac8170fd251a4c007fd9ea3fface38adb1bb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 22 Jan 2016 09:37:09 +0100 Subject: [PATCH] Show warning in version check and error reporting are not available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When curl is missing and allow_url_fopen is disabled, we can not access remote files. Fixes #11874 Signed-off-by: Michal Čihař --- ChangeLog | 1 + index.php | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index f26b4052cb..5d1dd5f6af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -35,6 +35,7 @@ phpMyAdmin - ChangeLog + 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 +- issue #11874 Report when version check and error reporting are disabled 4.5.5.0 (not yet released) - issue Undefined index: is_ajax_request diff --git a/index.php b/index.php index d714257b43..a1cc7799fe 100644 --- a/index.php +++ b/index.php @@ -475,6 +475,19 @@ if (! @extension_loaded('mbstring')) { ); } +/** + * Missing functionality + */ +if (! extension_loaded('curl') && ! ini_get('allow_url_fopen')) { + trigger_error( + __( + 'The curl extension was not found and allow_url_fopen is ' + . 'disabled. Due to this some features such as error reporting ' + . 'or version check are disabled.' + ) + ); +} + if ($cfg['LoginCookieValidityDisableWarning'] == false) { /** * Check whether session.gc_maxlifetime limits session validity.