mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Revert "Merge branch 'PHP-8.3'"
This reverts commit5455c3fc01
, reversing changes made toec8e86b96f
.
This commit is contained in:
parent
f420ea84aa
commit
20c72e1a43
@ -112,8 +112,8 @@ static zend_result datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS, zend_error_handlin
|
||||
}
|
||||
locale = Locale::createFromName(locale_str);
|
||||
/* get*Name accessors being set does not preclude being bogus */
|
||||
if (locale.isBogus() || ((locale_len == 1 && locale_str[0] != 'C') && strlen(locale.getISO3Language()) == 0)) {
|
||||
zend_argument_value_error(1, "\"%s\" is invalid", locale_str);
|
||||
if (locale.isBogus() || strlen(locale.getISO3Language()) == 0) {
|
||||
zend_argument_value_error(1, "\"%s\" is invalid", locale_str);
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
--TEST--
|
||||
GitHub #12943 IntlDateFormatter::locale accepting "C".
|
||||
--EXTENSIONS--
|
||||
intl
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$fmt = new IntlDateFormatter(
|
||||
'C',
|
||||
IntlDateFormatter::FULL,
|
||||
IntlDateFormatter::FULL,
|
||||
);
|
||||
var_dump($fmt->getLocale(ULOC_VALID_LOCALE));
|
||||
--EXPECTF--
|
||||
string(%d) "%s"
|
Loading…
Reference in New Issue
Block a user