From: [EMAIL PROTECTED]
Operating system: WIN2000 AD Server
PHP version: 4.1.2
PHP Bug Type: Oracle related
Bug description: fail to connect oracle
Hello,
I upgrade my server from NT -> 2000 and php 4.04pl -> 4.12 because i
test with 4.21 and it's not work good. i have very problem with php in the
upgrade process such as "access encounter at ..." and i read suggestion in
the net to use cgi version instad of isapi version. When i do that, it's
nearly good but i founds another problem about oracle connection (in isapi
it works good).
my code is :
putenv("ORACLE_SID=XXX");
putenv("ORACLE_HOME=e:\orant");
putenv("TNS_ADMIN=e:\orant\network\admin");
ora_logon($this->sqluser,$this->sqlpass);
it's not work!! and return error
Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name
i don't understand because i assigned ORACLE_HOME & TNS_ADMIN already
when i use phpinfo() it return
oracle
Oracle Support enabled
Environment
.
.
.
ORACLE_SID acid1
ORACLE_HOME e:\orant
TNS_ADMIN e:\orant\network\admin
variable that i assign is in environment section. it's the bug or not. And
how can i do.
--
Edit bug report at http://bugs.php.net/?id=17408&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17408&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17408&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17408&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17408&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17408&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17408&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17408&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17408&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17408&r=globals