|
@@ 144-148 (lines=5) @@
|
| 141 |
|
|
| 142 |
|
public static function mb_decode_numericentity($s, $convmap, $encoding = null) |
| 143 |
|
{ |
| 144 |
|
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) { |
| 145 |
|
trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING); |
| 146 |
|
|
| 147 |
|
return null; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if (!\is_array($convmap) || !$convmap) { |
| 151 |
|
return false; |
|
@@ 204-208 (lines=5) @@
|
| 201 |
|
|
| 202 |
|
public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false) |
| 203 |
|
{ |
| 204 |
|
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) { |
| 205 |
|
trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING); |
| 206 |
|
|
| 207 |
|
return null; |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
if (!\is_array($convmap) || !$convmap) { |
| 211 |
|
return false; |
|
@@ 531-535 (lines=5) @@
|
| 528 |
|
|
| 529 |
|
public static function mb_str_split($string, $split_length = 1, $encoding = null) |
| 530 |
|
{ |
| 531 |
|
if (null !== $string && !\is_scalar($string) && !(\is_object($string) && \method_exists($string, '__toString'))) { |
| 532 |
|
trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', E_USER_WARNING); |
| 533 |
|
|
| 534 |
|
return null; |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
if (1 > $split_length = (int) $split_length) { |
| 538 |
|
trigger_error('The length of each segment must be greater than zero', E_USER_WARNING); |