ID: 36880
User updated by: jbond007 at atsat dot com
Reported By: jbond007 at atsat dot com
-Status: Feedback
+Status: Open
Bug Type: Apache2 related
Operating System: Linux RH4
PHP Version: 5.1.2
New Comment:
I get the same behaviour with the version 5.1.3RC
Then, in Ocilogon($user,$pass,$db),
using the complete string found in tnsnames.ora,
instead of the short name, makes it work randomly
but not often. Then, sometimes instead of a segmentation
fault, I get : OCIEnvNlsCreate() failed. There is something wrong with
your system - please check that ORACLE_HOME is set and points to the
right directory in /usr/local/web/sfmi/include/oraconnect.php on line
38
And if I use Ocilogon($user,$pass,$db,$charset), with
$charset='WE8DEC', I always get a segmentation fault.
A check of getenv('ORACLE_HOME') before calling
ocilogon, shows $ORACLE_HOME env var is correct.
Previous Comments:
------------------------------------------------------------------------
[2006-03-28 00:06:16] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-03-28 00:05:53] jbond007 at atsat dot com
Description:
------------
I installed php 5.1.2 working with Apache 2.2
(the problem occurs with Apache 1.X.Y too and with
php4.X too).
When I ask <?phpinfo()?> everything appears correctly,
ORACLE_HOME, LD_LIBRARY_PATH and other env vars
are correct.
But OciLogon crashes apache with a segmentation Fault,
each time I use it.
If I use Ocilogon with php in cgi mode, it works fine,
and I could connect to my database, but not with apache.
Reproduce code:
---------------
./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs --with-openssl --with-bz2
--with-mysql=/usr/local/mysql --enable-ftp
--with-oci8=/oraclebase/u01/app/oracle/product/10.2.0 --enable-bcmath
--enable-calendar --enable-sigchild
--with-pdo-oci=/oraclebase/u01/app/oracle/product/10.2.0
The script to start apache is:
ORACLE_BASE=/oraclebase/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH
/usr/local/apache/bin/apachectl start
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36880&edit=1