Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ba9cf25

Browse files
committed
Merge branch 'PHP-8.3'
2 parents 2fe05c8 + b32a1cc commit ba9cf25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ext/intl/dateformat/dateformat_create.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static zend_result datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS, zend_error_handlin
112112
}
113113
locale = Locale::createFromName(locale_str);
114114
/* get*Name accessors being set does not preclude being bogus */
115-
if (locale.isBogus() || strlen(locale.getISO3Language()) == 0) {
115+
if (locale.isBogus() || ((locale_len == 1 && locale_str[0] != 'C') || (locale_len > 1 && strlen(locale.getISO3Language()) == 0))) {
116116
zend_argument_value_error(1, "\"%s\" is invalid", locale_str);
117117
return FAILURE;
118118
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /