|
@@ 143-146 (lines=4) @@
|
| 140 |
|
|
| 141 |
|
public static function mb_decode_numericentity($s, $convmap, $encoding = null) |
| 142 |
|
{ |
| 143 |
|
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) { |
| 144 |
|
trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.gettype($s).' given', E_USER_WARNING); |
| 145 |
|
return null; |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
if (!\is_array($convmap) || !$convmap) { |
| 149 |
|
return false; |
|
@@ 200-203 (lines=4) @@
|
| 197 |
|
|
| 198 |
|
public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false) |
| 199 |
|
{ |
| 200 |
|
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) { |
| 201 |
|
trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.gettype($s).' given', E_USER_WARNING); |
| 202 |
|
return null; |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
if (!\is_array($convmap) || !$convmap) { |
| 206 |
|
return false; |