Skip to content

Commit 908d199

Browse files
committed
change from review
1 parent 3316d2a commit 908d199

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/intl/formatter/formatter_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static int numfmt_ctor(INTERNAL_FUNCTION_PARAMETERS, zend_error_handling *error_
6565
}
6666

6767
if (strlen(uloc_getISO3Language(locale)) == 0) {
68-
zend_argument_value_error(1, "is invalid");
68+
zend_argument_value_error(1, "\"%s\" is invalid", locale);
6969
return FAILURE;
7070
}
7171

ext/intl/tests/gh12727.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ try {
1111
echo $e->getMessage();
1212
}
1313
?>
14-
--EXPECT--
15-
NumberFormatter::__construct(): Argument #1 ($locale) is invalid
14+
--EXPECTF--
15+
NumberFormatter::__construct(): Argument #1 ($locale) "%s" is invalid

0 commit comments

Comments
 (0)