php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36119 OCI8 and PDO are interdependent
Submitted: 2006-01-22 02:39 UTC Modified: 2006-01-22 19:21 UTC
From: gogala at sbcglobal dot net Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.1.2 OS: Linux, FC3
Private report: No CVE-ID: None
 [2006-01-22 02:39 UTC] gogala at sbcglobal dot net
Description:
------------
If I link PHP 5.1.2 with 
--disable-pdo --with-oci8=$ORACLE_HOME

I am not able to connect. If I relink with
--with-oci8=$ORACLE_HOME --with-pdo-oci

the server starts working. Here is the error code:

href='function.ocilogon'>function.ocilogon</a>]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that ORACLE_HOME
is set and points to the right directory in
/usr/local/PHP/adodb/drivers/adodb-oci8.inc.php on line 228, referer:

Reproduce code:
---------------
Any connect to ORACLE

Actual result:
--------------
[Thu Jan 12 19:26:11 2006] [notice] Apache/2.0.54 (Unix) PHP/5.1.2
configured -- resuming normal operations [Thu Jan 12 19:26:20 2006]
[error] [client 127.0.0.1] PHP Warning:  ocilogon() [<a
href='function.ocilogon'>function.ocilogon</a>]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that ORACLE_HOME
is set and points to the right directory in
/usr/local/PHP/adodb/drivers/adodb-oci8.inc.php on line 228, referer:
http://localhost/dba/dba_helper.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-22 02:44 UTC] tony2001@php.net
OCI8 and PDO are totally different and presence of PDO doesn't affect OCI8 in any way.
If you get the error message you get - "there is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory".
 [2006-01-22 06:08 UTC] gogala at sbcglobal dot net
Tony, I have 17 years of experience as an Oracle DBA. Such a 
mistake is highly unlikely for me, even if the problem wasn't reproduced independently. Unfortunately, Andy Hassall has also
reproduced it. See the recent thread called "5.1.2 woes" on
comp.lang.php
 [2006-01-22 14:02 UTC] tony2001@php.net
>Tony, I have 17 years of experience as an Oracle DBA
And you think that causes the problem?
Or why do you mention this?

I *KNOW* that PDO and OCI8 are independent modules, so this is definitely your misconfiguration.
 [2006-01-22 17:03 UTC] gogala at sbcglobal dot net
Well, I know that this is a bug, but I am not going to pick
a fight. Thanks for not checking. Next time I find a bug, I will not report it. I will publish the contents of this little
exchange on the usenet. God bless.
 [2006-01-22 17:06 UTC] sniper@php.net
I would have asked if the LIBS differ in the two Makefiles you get with the 2 different configure lines..and also if you actually did a _clean_ build..

What's usenet anyway? :)
 [2006-01-22 18:43 UTC] tony2001@php.net
You can have a huge expirience, but that doesn't mean you don't do mistakes.
I'm sure it's not a bug, so thanks for not providing any useful info, ignoring my comments, not checking for you local misconfiguration and turning whole report into pointless discussion.
 [2006-01-22 19:15 UTC] gogala at sbcglobal dot net
It's much easier to accuse somebody of incompetence then
actually check. You didn't bother to check, you were just irritating. As I have said before, this is the last problem
I'll ever report, for as long as you are there. Enjoy.
EOD.
 [2006-01-22 19:21 UTC] tony2001@php.net
# php -r 'var_dump(oci_connect("system", "system", "HP")); var_dump(new PDO("oci:dbase=hp", "system", "system"));'

resource(4) of type (oci8 connection)
object(PDO)#1 (0) {
}

Yes, EOD.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 11:00:03 2025 UTC