1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00

MFB: Fixed bug #46042 (memory leaks with reflection of

mb_convert_encoding())
This commit is contained in:
Ilia Alshanetsky
2008-09-10 23:19:50 +00:00
parent da5e36b702
commit 79d8631fea

View File

@@ -2961,7 +2961,7 @@ PHP_FUNCTION(mb_convert_encoding)
s_free = _from_encodings;
break;
default:
convert_to_string_ex(&arg_old);
convert_to_string(arg_old);
_from_encodings = Z_STRVAL_P(arg_old);
break;
}
@@ -3082,7 +3082,7 @@ PHP_FUNCTION(mb_detect_encoding)
}
break;
default:
convert_to_string_ex(&encoding_list);
convert_to_string(encoding_list);
if (!php_mb_parse_encoding_list(Z_STRVAL_P(encoding_list), Z_STRLEN_P(encoding_list), &list, &size, 0 TSRMLS_CC)) {
if (list) {
efree(list);