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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 21 + 15 = ?

 
 [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.