xref: /PHP-8.3/ext/intl/tests/bug12887.phpt (revision 74859783)
1--TEST--
2locale_get_keywords() bug #12887
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8function ut_main()
9{
10    $res_str = '';
11    $keywords_arr = ut_loc_get_keywords( 'de_DE@currency=EUR;collation=PHONEBOOK;sort=PHONEBOOK' );
12    if ($keywords_arr) {
13        foreach( $keywords_arr as $key => $value){
14            $res_str .= "$key = $value\n";
15        }
16    }
17    $res_str .= "\n";
18    return $res_str;
19
20}
21
22include_once( 'ut_common.inc' );
23ut_run();
24
25?>
26--EXPECT--
27collation = PHONEBOOK
28currency = EUR
29sort = PHONEBOOK
30