mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
MFB: Fixed bug #46042 (memory leaks with reflection of
mb_convert_encoding())
This commit is contained in:
parent
da5e36b702
commit
79d8631fea
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue