Home » Database » DB » Bug #2825
calling getAll() with array query parametre throws error in DB.php
Details
| Submitted | 2004-11-25 01:09 UTC |
|---|---|
| From | gildseth at start dot no |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | Irrelevant |
| OS | Linux 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