Fixed crash in mb_convert_encoding() that occurs when a void array is

passed as the third parameter
This commit is contained in:
Moriyoshi Koizumi 2003-04-01 11:49:30 +00:00
parent 60214a0338
commit 6eaa47854e

View File

@ -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;
}