1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/standard/tests/array/bug33382.phpt
2018-10-14 19:45:12 +02:00

28 lines
284 B
PHP

--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