1
0
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:
Bogdan Ungureanu
2025-07-29 18:35:27 +03:00
committed by GitHub
parent 4c576a2b02
commit e8b5bcfe19
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -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