We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fe05c8 + b32a1cc commit ba9cf25Copy full SHA for ba9cf25
ext/intl/dateformat/dateformat_create.cpp
@@ -112,7 +112,7 @@ static zend_result datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS, zend_error_handlin
112
}
113
locale = Locale::createFromName(locale_str);
114
/* get*Name accessors being set does not preclude being bogus */
115
- if (locale.isBogus() || strlen(locale.getISO3Language()) == 0) {
+ if (locale.isBogus() || ((locale_len == 1 && locale_str[0] != 'C') || (locale_len > 1 && strlen(locale.getISO3Language()) == 0))) {
116
zend_argument_value_error(1, "\"%s\" is invalid", locale_str);
117
return FAILURE;
118
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments