mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Intl: IntlListFormatter - update exception message (#19282)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user