summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug33382.phpt
blob: e54b984fd0316c71930092d708ad484d44341e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Bug #33382 (array_reverse() fails after *sort() )
--FILE--
<?php

$array = array(1,2,3,4,5);

sort($array);

var_dump(array_reverse($array));

echo "Done\n";
?>
--EXPECT--	
array(5) {
  [0]=>
  int(5)
  [1]=>
  int(4)
  [2]=>
  int(3)
  [3]=>
  int(2)
  [4]=>
  int(1)
}
Done