X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FStringUtils.php;h=6b10c0998b8b6572b59600531c59ef4c398eb072;hb=9e831f0b4d5dd25144e1841eb46d632d2697de63;hp=2af3868e441eb6103553e44a65388408870bcbc1;hpb=de94dd9f4112067903bc6e1d5ce06991db84f02f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/StringUtils.php b/includes/libs/StringUtils.php index 2af3868e44..6b10c0998b 100644 --- a/includes/libs/StringUtils.php +++ b/includes/libs/StringUtils.php @@ -41,8 +41,10 @@ class StringUtils { static function isUtf8( $value ) { $value = (string)$value; - // Before PHP 5.4, values above U+10FFFF are incorrectly allowed, so we have to - // check for them separately. + // HHVM 3.4 and older come with an outdated version of libmbfl that + // incorrectly allows values above U+10FFFF, so we have to check + // for them separately. (This issue also exists in PHP 5.3 and + // older, which are no longer supported.) static $newPHP; if ( $newPHP === null ) { $newPHP = !mb_check_encoding( "\xf4\x90\x80\x80", 'UTF-8' );