xref: /PHP-8.0/ext/intl/tests/locale/bug72809.phpt (revision 0f1b17e3)
1--TEST--
2Bug #72809 (Locale::lookup() wrong result with canonicalize option)
3--SKIPIF--
4<?php
5if (!extension_loaded('intl')) die("skip intl extension not avaible");
6?>
7--FILE--
8<?php
9var_dump(
10    Locale::lookup(['en', 'en-US'], 'en-US-u-cu-EUR-tz-deber-fw-mon', true),
11    Locale::lookup(['en', 'en_US'], 'en_US@currency=eur;fw=mon;timezone=Europe/Berlin', false),
12    Locale::lookup(['en', 'en_US'], 'en_US@currency=eur;fw=mon;timezone=Europe/Berlin', true),
13);
14?>
15--EXPECT--
16string(5) "en_us"
17string(5) "en_US"
18string(5) "en_us"
19