Home » Structures » Structures_DataGrid_DataSource_MDB2 » Bug #9759
fatal error when trying to connect to unexisting database with mdb2
Details
| 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) |
Comments
[2007-01-06 23:20 UTC] dscherbina at ukr dot net
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!