| @@ 5003-5011 (lines=9) @@ | ||
| 5000 | self::checkForSupport(); |
|
| 5001 | } |
|
| 5002 | ||
| 5003 | if ( |
|
| 5004 | $encoding !== 'UTF-8' |
|
| 5005 | && |
|
| 5006 | self::$support['mbstring'] === false |
|
| 5007 | && |
|
| 5008 | self::$support['iconv'] === false |
|
| 5009 | ) { |
|
| 5010 | trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5011 | } |
|
| 5012 | ||
| 5013 | if ( |
|
| 5014 | $encoding !== 'UTF-8' |
|
| @@ 5212-5220 (lines=9) @@ | ||
| 5209 | self::checkForSupport(); |
|
| 5210 | } |
|
| 5211 | ||
| 5212 | if ( |
|
| 5213 | $encoding !== 'UTF-8' |
|
| 5214 | & |
|
| 5215 | self::$support['iconv'] === true |
|
| 5216 | && |
|
| 5217 | self::$support['mbstring'] === false |
|
| 5218 | ) { |
|
| 5219 | trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5220 | } |
|
| 5221 | ||
| 5222 | if ( |
|
| 5223 | $offset >= 0 // iconv_strpos() can't handle negative offset |
|