| @@ 4993-5001 (lines=9) @@ | ||
| 4990 | self::checkForSupport(); |
|
| 4991 | } |
|
| 4992 | ||
| 4993 | if ( |
|
| 4994 | $encoding !== 'UTF-8' |
|
| 4995 | && |
|
| 4996 | self::$support['mbstring'] === false |
|
| 4997 | && |
|
| 4998 | self::$support['iconv'] === false |
|
| 4999 | ) { |
|
| 5000 | trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5001 | } |
|
| 5002 | ||
| 5003 | if ( |
|
| 5004 | $encoding !== 'UTF-8' |
|
| @@ 5202-5210 (lines=9) @@ | ||
| 5199 | self::checkForSupport(); |
|
| 5200 | } |
|
| 5201 | ||
| 5202 | if ( |
|
| 5203 | $encoding !== 'UTF-8' |
|
| 5204 | & |
|
| 5205 | self::$support['iconv'] === true |
|
| 5206 | && |
|
| 5207 | self::$support['mbstring'] === false |
|
| 5208 | ) { |
|
| 5209 | trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5210 | } |
|
| 5211 | ||
| 5212 | if ( |
|
| 5213 | $offset >= 0 // iconv_strpos() can't handle negative offset |
|