Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.0dev1

Bug #12020 Sorting an array with non continous index fails
Submitted: 2007-09-11 04:46 UTC Modified: 2007-09-12 16:08 UTC
From: albgra Assigned: wiesemann
Status: Closed Package: Structures_DataGrid_DataSource_Array (version 0.1.2)
PHP Version: 5.2.1 OS: Ubuntu 7.04
Roadmaps: (Not assigned)    
Subscription  


 [2007-09-11 04:46 UTC] albgra (Alberto Gragera)
Description: ------------ Hi! When you try to sort an array with non continuous index, the package trhows an "Undefined offset 0" error. I've made a few changes to allow non continuous indexes and associative arrays to be sorted.

Comments

 [2007-09-12 16:08 UTC] wiesemann (Mark Wiesemann)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. -- I haven't used your patch because another fix for this bug was already on my harddisk. For performance reasons, the "array fix" will only be applied if it is needed (i.e. "max key != count + 1").