|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-17 12:40 UTC] tony2001@php.net
[2005-06-17 12:53 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ A bug occur after doing a natsort and an array_reverse. after the natsort all seem to be good but after array_reverse not. If we don't use natsort all work fine. Reproduce code: --------------- <? $test = array ("/", "/mnt", "/tmp"); natsort($test); print_r($test); $test = array_reverse($test); print_r($test); ?> Expected result: ---------------- Array ( [0] => / [1] => /mnt [2] => /tmp ) Array ( [0] => /tmp [1] => /mnt [2] => / ) Actual result: -------------- Array ( [0] => / [1] => /mnt [2] => /tmp ) Array ( [0] => /tmp )