1--TEST--
2Bug #47481 (natcasesort() does not sort extended ASCII characters correctly)
3--FILE--
4<?php
5/*
6 * Test natcasesort() with extended ASCII characters
7 */
8
9$array = array ('Süden', 'spielen','Sonne','Wind','Regen','Meer');
10echo "\n-- Before sorting: --\n";
11var_dump($array);
12
13echo "\n-- After Sorting: --\n";
14var_dump(natcasesort($array));
15var_dump($array);
16
17echo "Done";
18?>
19--EXPECT--
20-- Before sorting: --
21array(6) {
22  [0]=>
23  string(6) "Süden"
24  [1]=>
25  string(7) "spielen"
26  [2]=>
27  string(5) "Sonne"
28  [3]=>
29  string(4) "Wind"
30  [4]=>
31  string(5) "Regen"
32  [5]=>
33  string(4) "Meer"
34}
35
36-- After Sorting: --
37bool(true)
38array(6) {
39  [5]=>
40  string(4) "Meer"
41  [4]=>
42  string(5) "Regen"
43  [2]=>
44  string(5) "Sonne"
45  [1]=>
46  string(7) "spielen"
47  [0]=>
48  string(6) "Süden"
49  [3]=>
50  string(4) "Wind"
51}
52Done
53