ID: 36545 Updated by: [EMAIL PROTECTED] Reported By: jistanidiot at gmail dot com -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: RHEL4 PHP Version: 5.1.2 New Comment:
Oracle libraries have certain requirements and this is not PHP or OCI8 issue. Previous Comments: ------------------------------------------------------------------------ [2006-02-27 23:56:27] cjbj at hotmail dot com Can you verify that the same version of Oracle was used in yours tests with PHP 5.0.3 and 5.1.x? Oracle 10.2 defaults to a stricter set of directory permissions than previous versions of Oracle. The only time I've seen this problem has been when the version of Oracle changed. ------------------------------------------------------------------------ [2006-02-27 18:19:59] jistanidiot at gmail dot com 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 this bug report at http://bugs.php.net/?id=36545&edit=1