#23189 [NEW]: ksort() doesn't work on numeric arrays

From: Date: Sun, 13 Apr 2003 23:00:52 +0000
Subject: #23189 [NEW]: ksort() doesn't work on numeric arrays
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37618@lists.php.net to get a copy of this message
From: wom dot bat at gmx dot net Operating system: Windows XP PHP version: 4.3.1 PHP Bug Type: Arrays related Bug description: ksort() doesn't work on numeric arrays If I try to sort a numeric array using ksort(), nothing happens, the array doesn't get sorted at all. sort() works perfect, though - the array gets sorted, but the index associations aren't kept, of course. As the documentation doesn't say that ksort() only works with associative arrays, I guess this is likely to be a bug... -- Edit bug report at http://bugs.php.net/?id=23189&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23189&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23189&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23189&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23189&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23189&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23189&r=support Expected behavior: http://bugs.php.net/fix.php?id=23189&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23189&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23189&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23189&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23189&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23189&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23189&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23189&r=gnused

« previous php.bugs (#37618) next »