|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19114 Typo in buildManipSQL function in DB/common.php
Submitted: 2002-08-26 16:15 UTC Modified: 2003-07-31 04:55 UTC
From: bugs at pointb dot co dot uk Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.2.2 OS: RedHat Linux 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bugs at pointb dot co dot uk
New email:
PHP Version: OS:


 [2002-08-26 16:15 UTC] bugs at pointb dot co dot uk
I am using version 1.3 of the Database Abstraction Layer.
There is the following section in the buildManipSQL function in the DB/common.php file that I think may have a typo in it:

The section is as follows:

if ($where) {
    $sql .= " WHERE $sql";

and I think it should be:

if ($where) {
    $sql .= " WHERE $where";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-26 16:25 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

Of course ! It\'s fixed in CVS :

-Fix bug in buildManipSQL (thanks KUBO Atsuhiro <>)

Thanks :-)
 [2003-07-31 04:49 UTC] jon at latchkey dot com
It kind of sucks that this bug is *still* being distributed with PHP 4.3.2! I just got bit by it pretty badly. Please update common.php with the distribution!
 [2003-07-31 04:55 UTC]
i belive this will make it into 4.3.3
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Sep 22 00:03:36 2021 UTC