Skip to content

Commit 81ffd3a

Browse files
Fix support for preloading
1 parent 766ee47 commit 81ffd3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bootstrap.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111

1212
use Symfony\Polyfill\Mbstring as p;
1313

14-
if (!function_exists('mb_strlen')) {
14+
if (!defined('MB_CASE_UPPER')) {
1515
define('MB_CASE_UPPER', 0);
1616
define('MB_CASE_LOWER', 1);
1717
define('MB_CASE_TITLE', 2);
18+
}
1819

20+
if (!function_exists('mb_strlen')) {
1921
function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); }
2022
function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); }
2123
function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }

0 commit comments

Comments
 (0)