#21186 [NEW]: Can not connect to Informix with DB::connect
| From: | ckongsak at hotmail dot com | Date: | Thu, 26 Dec 2002 07:16:27 +0000 |
| Subject: | #21186 [NEW]: Can not connect to Informix with DB::connect | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-11834@lists.php.net to get a copy of this message | ||
From: ckongsak@hotmail.com
Operating system: linux (redhat 7.0)
PHP version: 4.2.3
PHP Bug Type: PEAR related
Bug description: Can not connect to Informix with DB::connect
When I try to use informix module in PEAR package. And I see that some code
is wrong.
this below is a source code for generate error.
-----------------
$db = DB::connect($dsn, true);
if (DB::isError($db)) {
die(__FILE__ . ':' . __LINE__ . ' => ' . $db->getMessage());
}
-----------------
this is a output about of the source code.
-----------------
test.php:40 => DBError: no such database
-----------------
After if i investigate in ifx.php, in connect function is wrong (may be)
below is a current source code (ifx.php, v1.5)
----------------
if ((!DB::assertExtension('informix')) ||
(!DB::assertExtension('Informix'))) {
return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
}
----------------
Condition in if statement should use "&&" instead of "||".
--
Edit bug report at http://bugs.php.net/?id=21186&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21186&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21186&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21186&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21186&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21186&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21186&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21186&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21186&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21186&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21186&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21186&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21186&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21186&r=isapi