1--TEST--
2Fix UMR in array_user_key_compare (MOPB24)
3--FILE--
4<?php
5$arr = array("A" => 1, "B" => 1);
6
7function array_compare(&$key1, &$key2)
8  {
9    $GLOBALS['a'] = &$key2;
10    unset($key2);
11    return 1;
12  }
13
14uksort($arr, "array_compare");
15var_dump($a);
16
17?>
18--EXPECTF--
19Warning: array_compare(): Argument #1 ($key1) must be passed by reference, value given in %s on line %d
20
21Warning: array_compare(): Argument #2 ($key2) must be passed by reference, value given in %s on line %d
22string(1) "B"
23