Bug #2038: uksort sorting strings
| From: | php3 at tainted dot org | Date: | Wed, 11 Aug 1999 23:20:22 +0000 |
| Subject: | Bug #2038: uksort sorting strings | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9765@lists.php.net to get a copy of this message | ||
From: php3@tainted.org
Operating system: linux
PHP version: Earlier? Upgrade first!
PHP Bug Type: Misbehaving function
Bug description: uksort sorting strings
an array, constructed like:
$fields = array(1 => "Name", 2 => "Status", 3 => "Sex");
$a[$fields[1]] = "Zeev";
$a[$fields[2]] = "Cool";
$a[$fields[3]] = "Too Much";
sent to uksort($a,mySortRoutine);
seems to add a trailing NULL at the end so the two
args passed in are "Name\0" and "Status\0".