1--TEST--
2Test usort() function : usage variations - binary return cmp
3--FILE--
4<?php
5
6function ucmp($a, $b) {
7	return $a > $b;
8}
9
10$range = array(2, 4, 8, 16, 32, 64, 128);
11
12foreach ($range as $r) {
13	$backup = $array = range(0, $r);
14	shuffle($array);
15	usort($array, "ucmp");
16	if ($array != $backup) {
17		var_dump($array);
18		var_dump($backup);
19		die("Whatever sorting algo you used, this test should never be broken");
20	}
21}
22echo "okey";
23?>
24--EXPECT--
25okey
26