Skip to content

Commit 2defed8

Browse files
committed
change from review
1 parent cbb5147 commit 2defed8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/intl/converter/converter.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,7 @@ static bool php_converter_set_encoding(php_converter_object *objval,
376376
/* Should never happen */
377377
actual_encoding = "(unknown)";
378378
}
379-
char *msg;
380-
spprintf(&msg, 0, "Ambigious encoding specified, using %s", actual_encoding);
381-
intl_error_set(NULL, error, msg, 1);
382-
efree(msg);
379+
php_error_docref(NULL, E_WARNING, "Ambigious encoding specified, using %s", actual_encoding);
383380
} else if (U_FAILURE(error)) {
384381
if (objval) {
385382
THROW_UFAILURE(objval, "ucnv_open", error);

0 commit comments

Comments
 (0)