From: jistanidiot at gmail dot com Operating system: RHEL4 PHP version: 5.1.2 PHP Bug Type: OCI8 related Bug description: OCIEnvNlsCreate() failed
Description: ------------ When any oci_connect is called an error message about OCIEnvNlSCreate() failing is produced. Workaround: add the apache user to the oracle group. This only occurs in 5.2.1. Previous versions of PHP which I've tried (5.0.3 and 5.1.0) did not have this problem. Obviously this is a security issue as the apache user now has a lot more things it can use to wreak havoc. Oracle version 10.2.0.1.0. Apache version 2.0.52. OS: Red Hat Enterprise Linux ES 4. Reproduce code: --------------- $conn = oci_connect('user', 'pass', 'db'); if (!$conn) { $e = oci_error(); print htmlentities($e['message']); exit; } Expected result: ---------------- Expect to actually connect to the database Actual result: -------------- [error] PHP Warning: oci_connect() [<a href='function.oci-connect'>function.oci-connect</a>]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in <scriptname> on line <linenum> -- Edit bug report at http://bugs.php.net/?id=36545&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36545&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36545&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36545&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36545&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36545&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36545&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36545&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36545&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36545&r=support Expected behavior: http://bugs.php.net/fix.php?id=36545&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36545&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36545&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36545&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36545&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36545&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36545&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36545&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36545&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36545&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36545&r=mysqlcfg