Home » Database » DB » Bug #3850
DB/oci8.php line 128
Details
| Submitted | 2005-03-16 21:12 UTC |
|---|---|
| From | proman at ing dot uchile dot cl |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | 4.3.6 |
| OS | linux 2.4.22 |
| Roadmaps | (Not assigned) |
Comments
[2005-03-16 21:12 UTC] 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