|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-27 08:08 UTC] tony2001@php.net
[2004-11-27 12:01 UTC] bolk at hitv dot ru
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
Description: ------------ array_multisort was broken Reproduce code: --------------- $rel2 = array(17, 100, 100, 100, 100, 100, 100, 100, 17, 17, 17, 17, 17); $rel = array('a','b', 'c', 'd', 'e', 'f', 'g', 'h', 'x','y','z','xx','ww'); array_multisort ($rel2, SORT_NUMERIC, SORT_DESC, $rel, SORT_REGULAR ); print_r($rel2); Expected result: ---------------- Array ( [0] => 100 [1] => 100 [2] => 100 [3] => 100 [4] => 100 [5] => 100 [6] => 100 [7] => 17 [8] => 17 [9] => 17 [10] => 17 [11] => 17 [12] => 17 ) Actual result: -------------- Array ( [0] => 17 [1] => 100 [2] => 100 [3] => 100 [4] => 100 [5] => 100 [6] => 100 [7] => 100 [8] => 17 [9] => 17 [10] => 17 [11] => 17 [12] => 17 )