xref: /PHP-7.4/ext/standard/tests/array/bug33382.phpt (revision 782352c5)
1--TEST--
2Bug #33382 (array_reverse() fails after *sort() )
3--FILE--
4<?php
5
6$array = array(1,2,3,4,5);
7
8sort($array);
9
10var_dump(array_reverse($array));
11
12echo "Done\n";
13?>
14--EXPECT--
15array(5) {
16  [0]=>
17  int(5)
18  [1]=>
19  int(4)
20  [2]=>
21  int(3)
22  [3]=>
23  int(2)
24  [4]=>
25  int(1)
26}
27Done
28