]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #46042 (memory leaks with reflection of
authorIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2008 23:19:50 +0000 (23:19 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2008 23:19:50 +0000 (23:19 +0000)
mb_convert_encoding())

ext/mbstring/mbstring.c

index 5b10afe5a9508a23b548813013ff02bee787a9a4..6f1912dc033ff7705dbd16dbd33198bac72887d9 100644 (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);