#23271 [NEW]: Error in ifx.php database connect code

From: Date: Fri, 18 Apr 2003 14:30:17 +0000
Subject: #23271 [NEW]: Error in ifx.php database connect code
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15234@lists.php.net to get a copy of this message
From: jkaufman at wamnet dot com Operating system: Mandrake Linux 9.1 PHP version: 4CVS-2003-04-18 (stable) PHP Bug Type: PEAR related Bug description: Error in ifx.php database connect code 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 bug report at http://bugs.php.net/?id=23271&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23271&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23271&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23271&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23271&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23271&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23271&r=support Expected behavior: http://bugs.php.net/fix.php?id=23271&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23271&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23271&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23271&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23271&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23271&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23271&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23271&r=gnused

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