php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jkaufman at wamnet dot com
New email:
PHP Version: OS:

 

 [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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-18 09:34 UTC] lsmith@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 02:01:26 2025 UTC