#46280 [NEW]: uasort bug

From: Date: Sun, 12 Oct 2008 12:49:43 +0000
Subject: #46280 [NEW]: uasort bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129650@lists.php.net to get a copy of this message
From: goodfriends0092004 at yahoo dot com Operating system: windows PHP version: 5.2.6 PHP Bug Type: Unknown/Other Function Bug description: uasort bug Description: ------------ i found a bug of uasort function Reproduce code: --------------- $x = array(1,1,1,1,1,1,1,'a'=>1); uasort($x,create_function('$a,$b', 'return 0;')); var_dump($x); Expected result: ---------------- array 5 => int 1 6 => int 1 'a' => int 1 4 => int 1 3 => int 1 1 => int 1 2 => int 1 0 => int 1 -- Edit bug report at http://bugs.php.net/?id=46280&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46280&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46280&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46280&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46280&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46280&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46280&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46280&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46280&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46280&r=support Expected behavior: http://bugs.php.net/fix.php?id=46280&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46280&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46280&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46280&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46280&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46280&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46280&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46280&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46280&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46280&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46280&r=mysqlcfg

« previous php.bugs (#129650) next »