ID:               41184
 User updated by:  sasha at it-energy dot ru
 Reported By:      sasha at it-energy dot ru
 Status:           Open
 Bug Type:         OCI8 related
 Operating System: SUSE 10
 PHP Version:      5.2.1
 New Comment:

Installed full ORACLE client 10.2.0
php configure from root as:
./configure --with-apxs2=/opt/apache2/bin/apxs --with-openssl
--enable-shmop --enable-sysvsem --enable-sysvshm --with-zlib
--with-oci8=$ORACLE_HOME --enable-sigchild --with-iconv
Before configure test sqlplus user/[EMAIL PROTECTED] coneect succsessfuly.


Previous Comments:
------------------------------------------------------------------------

[2007-04-25 08:20:53] sasha at it-energy dot ru

Description:
------------
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in
/opt/apache2/htdocs/dbtest01.php on line 24


Reproduce code:
---------------
 $ORACLE_HOME = getenv("ORACLE_HOME");
 echo "ORACLE_HOME=$ORACLE_HOME<br>\n";
 $NLS_LANG = getenv("NLS_LANG");
 echo "NLS_LANG=$NLS_LANG<br>\n";
 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH");
 echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH<br>\n";
 $ORA_NLS33 = getenv("ORA_NLS33");
 echo "ORA_NLS33=$ORA_NLS33<br>\n";
 $username = "*******"; $paswd    = "******";
 $dbstring = "******************";
 $db_conn = ocilogon($username, $paswd, $dbstring );
 if (!$db_conn){
   echo "...FAILED</p>";
 }

Expected result:
----------------
Connect to database.

Actual result:
--------------
ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/client_1
NLS_LANG=american_america.CL8MSWIN1251
LD_LIBRARY_PATH=/opt/oracle/oracle/product/10.2.0/client_1/lib:/opt/apache2/lib:/opt/oracle/oracle/product/10.2.0/client_1/lib
ORA_NLS33=/opt/oracle/oracle/product/10.2.0/client_1/nls/data

Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in
/opt/apache2/htdocs/dbtest01.php on line 24
...FAILED


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41184&edit=1

Reply via email to