|
@@ 152-155 (lines=4) @@
|
| 149 |
|
return false; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
if (null !== $encoding && !\is_scalar($encoding)) { |
| 153 |
|
trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.gettype($s).' given', E_USER_WARNING); |
| 154 |
|
return ''; // Instead of null (cf. mb_encode_numericentity). |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
$s = (string) $s; |
| 158 |
|
if ('' === $s) { |
|
@@ 209-212 (lines=4) @@
|
| 206 |
|
return false; |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
if (null !== $encoding && !\is_scalar($encoding)) { |
| 210 |
|
trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.gettype($s).' given', E_USER_WARNING); |
| 211 |
|
return null; // Instead of '' (cf. mb_decode_numericentity). |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
if (null !== $is_hex && !\is_scalar($is_hex)) { |
| 215 |
|
trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.gettype($s).' given', E_USER_WARNING); |
|
@@ 214-217 (lines=4) @@
|
| 211 |
|
return null; // Instead of '' (cf. mb_decode_numericentity). |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
if (null !== $is_hex && !\is_scalar($is_hex)) { |
| 215 |
|
trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.gettype($s).' given', E_USER_WARNING); |
| 216 |
|
return null; |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
$s = (string) $s; |
| 220 |
|
if ('' === $s) { |