php-src/ext/standard/tests/array/array_user_key_compare.phpt
Steph Fox 833f4150a1 - killed off UEXPECT
- could someone please fix var_export2.phpt? NUL is corrupted, can't fix here
2008-05-26 23:36:10 +00:00

20 lines
286 B
PHP

--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);
?>
--EXPECTF--
unicode(1) "A"