PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #2825

calling getAll() with array query parametre throws error in DB.php

Details

Submitted2004-11-25 01:09 UTC
Fromgildseth at start dot no
Assigneddanielc
StatusBogus
PackageDB
PHP VersionIrrelevant
OSLinux Debian
Roadmaps(Not assigned)

Comments

[2004-11-25 01:09 UTC] gildseth at start dot no

Description:
------------
I acidentally called DB::getALL() with an first argument array(array()). This seems to percolate through the code, and manifested itself in an error message from another methode in DB.php

Reproduce code:
---------------
$pearDB->getAll(array(array()));

Expected result:
----------------
No expectations really

Actual result:
--------------
Warning: preg_match() expects parameter 2 to be string, array given in /usr/share/php/DB.php on line 471