mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove unnecesary check in php_mb_check_encoding()
The caller makes sure that this is not NULL.
This commit is contained in:
parent
f182309e87
commit
857fe616fa
1 changed files with 0 additions and 4 deletions
|
@ -4222,10 +4222,6 @@ MBSTRING_API int php_mb_check_encoding(const char *input, size_t length, const c
|
|||
const mbfl_encoding *encoding = MBSTRG(current_internal_encoding);
|
||||
mbfl_buffer_converter *convd;
|
||||
|
||||
if (input == NULL) {
|
||||
return MBSTRG(illegalchars) == 0;
|
||||
}
|
||||
|
||||
if (enc != NULL) {
|
||||
encoding = mbfl_name2encoding(enc);
|
||||
if (!encoding || encoding == &mbfl_encoding_pass) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue