summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_user_key_compare.phpt
blob: 69bc37f48a4e496b29473b2d2293f94999329fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Fix UMR in array_user_key_compare (MOPB24)
--FILE--
<?php
$arr = array("A" => 1, "B" => 1);

function array_compare(&$key1, &$key2)
  {
    $GLOBALS['a'] = &$key2;
    unset($key2);
    return 1;
  }

uksort($arr, "array_compare");
var_dump($a);

?>
--EXPECT--
string(1) "B"