#23271 [Opn->Csd]: Error in ifx.php database connect code

From: Date: Fri, 18 Apr 2003 14:34:21 +0000
Subject: #23271 [Opn->Csd]: Error in ifx.php database connect code
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15236@lists.php.net to get a copy of this message
ID: 23271 Updated by: lsmith@php.net Reported By: jkaufman at wamnet dot com -Status: Open +Status: Closed Bug Type: PEAR related Operating System: Mandrake Linux 9.1 PHP Version: 4CVS-2003-04-18 (stable) New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2003-04-18 09:30:17] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23271&edit=1

« previous php.pear.dev (#15236) next »