#36545 [Com]: OCIEnvNlsCreate() failed
| From: | cjbj at hotmail dot com | Date: | Mon, 27 Feb 2006 22:56:28 +0000 |
| Subject: | #36545 [Com]: OCIEnvNlsCreate() failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93737@lists.php.net to get a copy of this message | ||
ID: 36545
Comment by: cjbj at hotmail dot com
Reported By: jistanidiot at gmail dot com
Status: Open
Bug Type: OCI8 related
Operating System: RHEL4
PHP Version: 5.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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