diff options
author | Michal Čihař <michal@cihar.com> | 2016-10-17 18:03:12 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-10-17 18:03:12 +0300 |
commit | 4311ea09d9f11d7b70b83c5842b03e959a4e811a (patch) | |
tree | eadf22017a36c7e20177ada771021b404d9b2369 | |
parent | 62b6e640fccb73fba0ebbc1b45535fba763ceae3 (diff) | |
parent | d47956461f375baf6d9ef99989c8c8fdf47af553 (diff) |
Merge branch 'QA_4_6'
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | index.php | 15 | ||||
-rw-r--r-- | libraries/common.inc.php | 14 |
3 files changed, 15 insertions, 15 deletions
@@ -94,6 +94,7 @@ phpMyAdmin - ChangeLog - issue #12338 Designer reverts to first saved ER after EACH relation create or delete - issue #12639 'Show trace' in Console generates JS error for functions in query's trace called without any arguments - issue #12366 Fix user creation with certain MariaDB setups +- issue #12616 Refuse to work with mbstring.func_overload enabled 4.6.4 (2016-08-16) - issue [security] Weaknesses with cookie encryption, see PMASA-2016-29 @@ -433,21 +433,6 @@ echo '</div>'; echo '</div>'; /** - * As we try to handle charsets by ourself, mbstring overloads just - * break it, see bug 1063821. - */ -if (@extension_loaded('mbstring') && @ini_get('mbstring.func_overload') > 1) { - trigger_error( - __( - 'You have enabled mbstring.func_overload in your PHP ' - . 'configuration. This option is incompatible with phpMyAdmin ' - . 'and might cause some data to be corrupted!' - ), - E_USER_WARNING - ); -} - -/** * mbstring is used for handling multibytes inside parser, so it is good * to tell user something might be broken without it, see bug #1063149. */ diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 522e5524c5..2d68c91810 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -469,6 +469,20 @@ if ($GLOBALS['text_dir'] == 'ltr') { $GLOBALS['PMA_Config']->checkPermissions(); $GLOBALS['PMA_Config']->checkErrors(); +/** + * As we try to handle charsets by ourself, mbstring overloads just + * break it, see bug 1063821. + */ +if (@extension_loaded('mbstring') && @ini_get('mbstring.func_overload') != '0') { + PMA_fatalError( + __( + 'You have enabled mbstring.func_overload in your PHP ' + . 'configuration. This option is incompatible with phpMyAdmin ' + . 'and might cause some data to be corrupted!' + ) + ); +} + /******************************************************************************/ /* setup servers LABEL_setup_servers */ |