xref: /PHP-8.2/ext/intl/tests/gh12282.phpt (revision 0da1356c)
1--TEST--
2GitHub #12282 IntlDateFormatter::locale with invalid value.
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8var_dump(new IntlDateFormatter(
9	'xx',
10	IntlDateFormatter::FULL,
11	IntlDateFormatter::FULL,
12	null,
13	null,
14	'w'
15));
16Locale::setDefault('xx');
17var_dump(new IntlDateFormatter(Locale::getDefault()));
18--EXPECT--
19object(IntlDateFormatter)#1 (0) {
20}
21object(IntlDateFormatter)#1 (0) {
22}
23