|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-27 23:56 UTC] cjbj at hotmail dot com
[2006-02-28 10:30 UTC] tony2001@php.net
[2006-02-28 15:35 UTC] jistanidiot at gmail dot com
[2006-02-28 17:06 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 06:00:01 2025 UTC |
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>