|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 00:00:02 2025 UTC |
The DB::connect() function in file pear/DB/oci8.php in php-4.1.2 and php-4.2.0RC2 cannot connect to an Oracle database if one follows the order for the arguments for this function. In this function, $dsninfo['hostspec'] is passed into OCILogon(). The correct parameter should be $dsninfo['database']. The following output of diff shows a fix: 94c94 < $database = $dsninfo['database']; --- > $hostspec = $dsninfo['hostspec']; 98,99c98,99 < if ($database) { < $conn = @$connect_function($user,$pw,$database); --- if ($hostspec) { > $conn = @$connect_function($user,$pw,$hostspec);