diff --git a/src/Symfony/Component/Security/Core/Util/StringUtils.php b/src/Symfony/Component/Security/Core/Util/StringUtils.php index 95c8513ed7..c43a41a1c7 100644 --- a/src/Symfony/Component/Security/Core/Util/StringUtils.php +++ b/src/Symfony/Component/Security/Core/Util/StringUtils.php @@ -82,7 +82,7 @@ class StringUtils if ($func_exists === null) { $func_exists = function_exists('mb_strlen'); } - + if ($func_exists) { return mb_strlen($string, '8bit'); }