|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23271 Error in ifx.php database connect code
Submitted: 2003-04-18 09:30 UTC Modified: 2003-04-18 09:34 UTC
From: jkaufman at wamnet dot com Assigned:
Status: Closed Package: PEAR related
PHP Version: 4CVS-2003-04-18 (stable) OS: Mandrake Linux 9.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
46 - 10 = ?
Subscribe to this entry?

 [2003-04-18 09:30 UTC] jkaufman at wamnet dot com
The connect function in DB/ifx.php contains this:

    function connect(&$dsninfo, $persistent = false)
    if (!DB::assertExtension('informix') || !DB::assertExtension('Informix')) {
   return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);

It should be:

    function connect(&$dsninfo, $persistent = false)
      if (!DB::assertExtension('informix') && !DB::assertExtension('Informix')) {
    return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);

Note the '||' must be changed to '&&' or it will always fail when it shouldn't, and succeed when it shouldn't.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-18 09:34 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 07:03:36 2021 UTC