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

Bug #6779 sort bug
Submitted: 2006-02-14 13:31 UTC
From: chonny_78 at yahoo dot com Assigned: wiesemann
Status: Closed Package: Structures_DataGrid (version 0.6.3)
PHP Version: 5.1.1 OS: windows small bussines 2003
Roadmaps: (Not assigned)    
Subscription  


 [2006-02-14 13:31 UTC] chonny_78 at yahoo dot com
Description: ------------ sort bug with php 5.1.1. Sort dont working with new version of php. I tested this script on two mashines. Test script: --------------- <?php require_once('Structures/DataGrid.php'); $mysqli = new mysqli('host','usr','pass','hr'); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $rs = $mysqli->query('SELECT * FROM users u;'); while ($row = $rs->fetch_assoc()) { $data[] = $row; } $dg = new Structures_DataGrid(); $dg->bind($data); $dg->render(); $rs->close; ?>

Comments

 [2006-02-15 20:52 UTC] 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. --- This was related to bug #6582. (You might consider using DBQuery or MDB2 DataSource driver instead of fetching the data yourself from the result set.)