[core/polyfills] remove mb_ functions - there are standard polyfills for that

This commit is contained in:
Shish 2024-02-26 15:09:57 +00:00 committed by Shish
parent 52278baf75
commit b6cca42f73

View file

@ -237,22 +237,6 @@ function find_header(array $headers, string $name): ?string
return $header; return $header;
} }
if (!function_exists('mb_strlen')) {
// TODO: we should warn the admin that they are missing multibyte support
/** @noinspection PhpUnusedParameterInspection */
function mb_strlen(string $str, string $encoding): int
{
return strlen($str);
}
function mb_internal_encoding(string $encoding): void
{
}
function mb_strtolower(string $str): string
{
return strtolower($str);
}
}
/** /**
* @return class-string[] * @return class-string[]
*/ */