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