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 » Database » DB » Bug #1142

DB throws conversion error

Details

Submitted2004-04-06 03:30 UTC
Fromaidan at virtualexplorer dot com dot au
Assigneddanielc
StatusDuplicate
PackageDB
PHP Version5CVS-2004-04-05 (dev)
OSWin
Roadmaps(Not assigned)

Comments

[2004-04-06 03:30 UTC] aidan at virtualexplorer dot com dot au

Description:
------------
DB throws an error when doing a getAll query.

Notice: Object of class DB_result could not be converted to integer in E:\www\PEAR\DB\common.php on line 1584

Reproduce code:
---------------
require_once ('DB.php');
$db = DB::connect('mysql://...');
$query = 'SELECT VERSION()';
$data = $db->getAll($query);
print_r ($data);

Expected result:
----------------
Not an error

Actual result:
--------------
Notice: Object of class DB_result could not be converted to integer in E:\www\PEAR\DB\common.php on line 1584 Array ( [0] => Array ( [0] => 4.1.1a-alpha-nt ) )