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 #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