PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Structures » Structures_DataGrid_DataSource_MDB2 » Bug #9759

fatal error when trying to connect to unexisting database with mdb2

Details

Submitted2007-01-06 23:20 UTC
Fromdscherbina at ukr dot net
Assignedwiesemann
StatusClosed
PackageStructures_DataGrid_DataSource_MDB2
PHP Version4.4.4
OSwinxp
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!