|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-14 21:42 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 27 15:00:01 2025 UTC |
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