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

Bug #4503 CVS version of Array.php (1.13) does not count entries correctly
Submitted: 2005-06-01 17:58 UTC
From: justinpatrin Assigned: asnagy
Status: Closed Package: Structures_DataGrid
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-01 17:58 UTC] justinpatrin
Description: ------------ I playing with the CVS version of Structures_DataGrid I ran in to an error with array_multisort about the arrays' length not matching. It turns out this is because of the CVS changes to the sort() function. If the passed in $ar has no elements then this error happens because $numRows is not set correctly. This can be fixed by changing: if (!($numRows = count($ar))) { $ar = $this->_ar; } to if (!($numRows = count($ar))) { $ar = $this->_ar; $numRows = count($ar); }

Comments

 [2005-06-06 21:14 UTC] asnagy
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.