You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: includes/unicode.inc
+9-5
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,15 @@ function _unicode_check() {
59
59
if (ini_get('mbstring.encoding_translation') != 0) {
60
60
returnarray(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.encoding_translation</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
61
61
}
62
-
if (ini_get('mbstring.http_input') != 'pass') {
63
-
returnarray(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_input</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
64
-
}
65
-
if (ini_get('mbstring.http_output') != 'pass') {
66
-
returnarray(UNICODE_ERROR, $t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_output</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
62
+
// mbstring.http_input and mbstring.http_output are deprecated and empty by
63
+
// default in PHP 5.6.
64
+
if (version_compare(PHP_VERSION, '5.6.0') == -1) {
65
+
if (ini_get('mbstring.http_input') != 'pass') {
66
+
returnarray(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_input</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
67
+
}
68
+
if (ini_get('mbstring.http_output') != 'pass') {
69
+
returnarray(UNICODE_ERROR, $t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_output</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
0 commit comments