Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/intl/listformatter/listformatter_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ PHP_METHOD(IntlListFormatter, __construct)
}

if (locale_len > INTL_MAX_LOCALE_LEN) {
zend_argument_value_error(1, "Locale string too long, should be no longer than %d characters", INTL_MAX_LOCALE_LEN);
zend_argument_value_error(1, "must be less than or equal to %d characters", INTL_MAX_LOCALE_LEN);
RETURN_THROWS();
}

Expand Down
2 changes: 1 addition & 1 deletion ext/intl/tests/listformatter/listformatter_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ try {
?>
--EXPECT--
IntlListFormatter::__construct(): Argument #1 ($locale) "f" is invalid
IntlListFormatter::__construct(): Argument #1 ($locale) Locale string too long, should be no longer than 156 characters
IntlListFormatter::__construct(): Argument #1 ($locale) must be less than or equal to 156 characters
Object of class stdClass could not be converted to string
Object of class stdClass could not be converted to string