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

Bug #9759 fatal error when trying to connect to unexisting database with mdb2
Submitted: 2007-01-06 23:20 UTC
From: dscherbina at ukr dot net Assigned: wiesemann
Status: Closed Package: Structures_DataGrid_DataSource_MDB2
PHP Version: 4.4.4 OS: winxp
Roadmaps: (Not assigned)    
Subscription  


 [2007-01-06 23:20 UTC] dscherbina at ukr dot net (Dmitriy)
Description: ------------ fatal php error when trying to connect to unexisting database with mdb2. message: Fatal error: Unsupported operand types in z:\home\new_pear\www\PEAR\Structures\DataGrid\Renderer.php on line 500 -->> ceil($totalRowNum / $rowsPerPage) ->> rowsPerPage is mdb2_error Object! Test script: --------------- $datagrid =& new Structures_DataGrid(10); $options = array('dsn' => 'mysql://root:@localhost/new_pear2'); // UNEXISTING DataBase $test = $datagrid->bind('SELECT * FROM auth', $options, DATAGRID_SOURCE_MDB2); Expected result: ---------------- correct error handling!

Comments

 [2007-01-07 13:19 UTC] wiesemann (Mark Wiesemann)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Structures_DataGrid_DataSource_MDB2 (I've corrected the package selection. DBQuery driver was not affected by this problem.)