mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed crash in mb_convert_encoding() that occurs when a void array is
passed as the third parameter
This commit is contained in:
parent
60214a0338
commit
6eaa47854e
@ -1969,7 +1969,7 @@ PHP_FUNCTION(mb_convert_encoding)
|
||||
zend_hash_move_forward(target_hash);
|
||||
i--;
|
||||
}
|
||||
if ( !strlen(_from_encodings)) {
|
||||
if (_from_encodings != NULL && !strlen(_from_encodings)) {
|
||||
efree(_from_encodings);
|
||||
_from_encodings = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user