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 96ffe6a

Browse files
committed
ext/intl: fix bug introduced by 5455c3f
was meant to fix GH-12943. Close GH-13001.
1 parent 5d79c1b commit 96ffe6a

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 によって変換されたページ (->オリジナル) /