Bug #3850 [Opn->Bgs]: DB/oci8.php line 128

From: Date: Wed, 16 Mar 2005 21:25:59 +0000
Subject: Bug #3850 [Opn->Bgs]: DB/oci8.php line 128
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-3974@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=3850&edit=1 ID: 3850 Updated by: danielc@analysisandsolutions.com Reported By: proman at ing dot uchile dot cl -Status: Open +Status: Bogus Type: Bug Package: Bug System Operating System: linux 2.4.22 PHP Version: 4.3.6 -Assigned To: +Assigned To: danielc New Comment: Greetings: You seem very confused. You entered this bug under the "Bug System" category/package. It's a "DB" bug. Similarly, your version of DB is outdated. Upgrade to 1.7.4. Finally, since you're using PHP 4.3.6 (which also needs upgrading) you don't ever reach the line in question because oci_connect() was not introduced until PHP 5. Previous Comments: ------------------------------------------------------------------------ [2005-03-16 16:12:56] proman at ing dot uchile dot cl Description: ------------ Dear DB people, we have upgraded recently the DB pear version to (1.7.0), then all the system fall down. With a no conection error. I found that the problems appear near line 129: if (function_exists('oci_connect')) { if (isset($dsn['new_link']) && ($dsn['new_link'] == 'true' || $dsn['new_link'] === true)) { $connect_function = 'oci_new_connect'; } else { $connect_function = $persistent ? 'oci_pconnect' : 'oci_connect'; } $char = empty($dsn['charset']) ? null : $dsn['charset']; $this->connection = @$connect_function($dsn['username'], $dsn['password'], $dsn['database'], <----- here maybe a hostspec could solve the problem $char); we was solved hidding all the if (function_exists) block. Is this correct or where are lost in space? Thx in advance Reproduce code: --------------- any DB conect ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=3850&edit=1

« previous php.pear.webmaster (#3974) next »