Skip to content
Snippets Groups Projects
Commit 12bb051b authored by catch's avatar catch
Browse files

Issue #2332295 by Berdir: Fixed Unicode requirement check not working with PHP 5.6.

parent ae5d5c84
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -163,7 +163,8 @@ public static function check() {
static::$status = static::STATUS_ERROR;
return 'mbstring.encoding_translation';
}
if (ini_get('mbstring.http_input') != 'pass') {
// mbstring.http_input is deprecated and empty by default in PHP 5.6.
if (version_compare(PHP_VERSION, '5.6.0') == -1 && ini_get('mbstring.http_input') != 'pass') {
static::$status = static::STATUS_ERROR;
return 'mbstring.http_input';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment