|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-03-27 19:57 UTC] sixd@php.net
-Status: Open
+Status: Feedback
[2012-03-27 19:57 UTC] sixd@php.net
[2012-03-27 20:03 UTC] alan dot mckay at gmail dot com
[2012-03-27 20:03 UTC] alan dot mckay at gmail dot com
-Status: Feedback
+Status: Open
[2012-03-27 20:08 UTC] sixd@php.net
[2012-03-27 20:08 UTC] sixd@php.net
-Status: Open
+Status: Feedback
[2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ I am using the version of PHP from Ubuntu 11.11 and have the following array which causes sort to crash. The output below was produced with print_r just before the call to the sort. Sorry I cannot upgrade because there is no newer version available yet for ubuntu if I do 'apt-get upgrade' I do this call : sort($array, SORT_STRING); If I change it to this, it works : usort($array, strcasecmp); Version 5.3.6-13ubuntu3.5 Test script: --------------- ( [0] => SeqFeature Object ( [fType] => origin of replication [fValue] => F1 [fStart] => 138 [fEnd] => 444 [fDir] => reverse [fDescr] => [description] => [isFeature] => 1 [featureID] => -1 [pName] => [pAlias] => [pDescr] => [pCategory] => [pValue] => [propID] => ) [1] => SeqFeature Object ( [fType] => origin of replication [fValue] => pUC [fStart] => 1231 [fEnd] => 1850 [fDir] => reverse [fDescr] => [description] => [isFeature] => 1 [featureID] => -1 [pName] => [pAlias] => [pDescr] => [pCategory] => [pValue] => [propID] => ) ) Expected result: ---------------- Have the array sorted Actual result: -------------- Sort never returns