--TEST-- uuid_compare() function --SKIPIF-- --FILE-- $uuid1) { foreach ($uuids as $key2 => $uuid2) { echo "uuid$key1"; switch (uuid_compare($uuid1, $uuid2)) { case -1: echo " < "; break; case 0: echo " = "; break; case 1: echo " > "; break; } echo "uuid$key2\n"; } echo "\n"; } ?> --EXPECT-- uuid0 = uuid0 uuid0 < uuid1 uuid0 < uuid2 uuid1 > uuid0 uuid1 = uuid1 uuid1 < uuid2 uuid2 > uuid0 uuid2 > uuid1 uuid2 = uuid2