From: yoshida at zend dot co dot jp Operating system: Solaris Sparc 9 PHP version: 5.2.8 PHP Bug Type: OCI8 related Bug description: ocilogon returns error very rarely.
Description: ------------ I find warnings that occurres each about 1 or 3 days. The warning says, PHP warning: ocilogon() function.ocilogon OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries.... But the LD_LIBRARY_PATH, the arguments to ocilogon() are all correct. The warning continues 5 or 15 minutes, but no all ocilogon() fails. Some ocilogon() fails, Others not fail in the same period. I change ocilogon() to oci_connect(), but the warning also returns. I could not find the warning when I use the Oracle Instant Client 9.2.0.5 and php 4.3.8, but I find now the message. I use now the Oracle Instant Client 10.2.0.3 and php 5.2.8 pair. I doubt OCI_G(errcode) may return error rarely in spite of correct arguments. The OCI_G(errcode) is at 1237 line in /ext/oci8/oci8.c . OCI_G(errcode) seems to use Oracle API at 446 line in /ext/oci8/php_oci8_int.h . Reproduce code: --------------- $ID = "userid"; $PW = "userpass"; $DB = "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=userhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=usersrvname)))"; return OCILogon($ID, $PW, $DB); -- Edit bug report at http://bugs.php.net/?id=47506&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47506&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47506&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47506&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47506&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47506&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47506&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47506&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47506&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47506&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47506&r=support Expected behavior: http://bugs.php.net/fix.php?id=47506&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47506&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47506&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47506&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47506&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47506&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47506&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47506&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47506&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47506&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47506&r=mysqlcfg