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 b32a1cc

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
2 parents d33a534 + 96ffe6a commit b32a1cc

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() || ((locale_len == 1 && locale_str[0] != 'C') && strlen(locale.getISO3Language()) == 0)) {
115+
if (locale.isBogus() || ((locale_len == 1 && locale_str[0] != 'C') || (locale_len > 1&& strlen(locale.getISO3Language()) == 0))) {
116116
goto error;
117117
}
118118

0 commit comments

Comments
(0)

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