|
|
|
@ -2144,9 +2144,9 @@ PHP_FUNCTION(mb_convert_encoding) |
|
|
|
if ( _from_encodings) { |
|
|
|
l = strlen(_from_encodings); |
|
|
|
n = strlen(Z_STRVAL_PP(hash_entry)); |
|
|
|
_from_encodings = erealloc(_from_encodings, l+n+3); |
|
|
|
strcpy(_from_encodings+l,", "); |
|
|
|
strcpy(_from_encodings+l+2,Z_STRVAL_PP(hash_entry)); |
|
|
|
_from_encodings = erealloc(_from_encodings, l+n+2); |
|
|
|
strcpy(_from_encodings+l,","); |
|
|
|
strcpy(_from_encodings+l+1,Z_STRVAL_PP(hash_entry)); |
|
|
|
} else { |
|
|
|
_from_encodings = estrdup(Z_STRVAL_PP(hash_entry)); |
|
|
|
} |
|
|
|
|