#32817 [NEW]: array_multisort

From: Date: Mon, 25 Apr 2005 02:55:16 +0000
Subject: #32817 [NEW]: array_multisort
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78137@lists.php.net to get a copy of this message
From: tianlin dot wang at sas dot com Operating system: REDHAT 9 PHP version: 5.0.4 PHP Bug Type: Unknown/Other Function Bug description: array_multisort Description: ------------ It seems to me that array_multisort() is not working properly (does not sort at all) for a reference to an array. The example code is listed below. I noticed that sort() works properly. <?PHP $p['us'] = array(); $arr = &$p['us']; $arr[]=4; $arr[]=2; $arr[]=1; $arr[]=5; array_multisort($arr); //sort($arr); this works properly. for ($i=0; $i<count($arr); $i++) { echo($arr[$i]); echo("\n"); } ?> -- Edit bug report at http://bugs.php.net/?id=32817&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32817&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32817&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32817&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32817&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32817&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32817&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32817&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32817&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32817&r=support Expected behavior: http://bugs.php.net/fix.php?id=32817&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32817&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32817&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32817&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32817&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32817&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32817&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32817&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32817&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32817&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32817&r=mysqlcfg

« previous php.bugs (#78137) next »