From: sasha at it-energy dot ru Operating system: SUSE 10 PHP version: 5.2.1 PHP Bug Type: OCI8 related Bug description: NOT CONNECT to DATABASE
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 bug report at http://bugs.php.net/?id=41184&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41184&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41184&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41184&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41184&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41184&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41184&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41184&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41184&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41184&r=support Expected behavior: http://bugs.php.net/fix.php?id=41184&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41184&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41184&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41184&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41184&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41184&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41184&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41184&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41184&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41184&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41184&r=mysqlcfg