@@ 5442-5450 (lines=9) @@ | ||
5439 | $str = self::clean($str); |
|
5440 | } |
|
5441 | ||
5442 | if ( |
|
5443 | $encoding !== 'UTF-8' |
|
5444 | && |
|
5445 | self::$SUPPORT['mbstring'] === false |
|
5446 | && |
|
5447 | self::$SUPPORT['iconv'] === false |
|
5448 | ) { |
|
5449 | trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
5450 | } |
|
5451 | ||
5452 | if ( |
|
5453 | $encoding !== 'UTF-8' |
|
@@ 5659-5667 (lines=9) @@ | ||
5656 | return strpos($haystack, $needle, $offset); |
|
5657 | } |
|
5658 | ||
5659 | if ( |
|
5660 | $encoding !== 'UTF-8' |
|
5661 | & |
|
5662 | self::$SUPPORT['iconv'] === true |
|
5663 | && |
|
5664 | self::$SUPPORT['mbstring'] === false |
|
5665 | ) { |
|
5666 | trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
5667 | } |
|
5668 | ||
5669 | if ( |
|
5670 | $offset >= 0 // iconv_strpos() can't handle negative offset |