Re: PHP Oci8 segmntation fault
| From: | Lang Sharpe | Date: | Wed, 13 Aug 2003 23:05:31 +0000 |
| Subject: | Re: PHP Oci8 segmntation fault | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29874@lists.php.net to get a copy of this message | ||
Hi Radovan
Here are some suggestions
Make sure $ORACLE_HOME is set in your environment. There may be other
environment variables that the environment needs as well that are set for
the webserver process, but not when you run the command line version.
PHP 4.3.2 has a bug in it that causes php to crash with oracle support. Try
adding
#undef HAVE_OCI8_SHARED_MODE
near the top of ext/oci8/oci8.c
If your getting a core dump, then you can compile php with --enable-debug as
a configure option. run the script again and use gdb to get a backtrace.
There are instructions for doing this are at
http://bugs.php.net/bugs-generating-backtrace.php
This probably wont solve your problem, but is fun to do anyway.
Lang
Radovan Radic wrote:
> Hello
>
> I have php 4.3.2 installed as apache 2.0.45 module on RH Linux (7.3) with
> oci8 support.
> Things work fine when php scripts are accessed via web, but when i try to
> start them from command line using
> /usr/local/php4.3.2/bin/php test.php i get an error
> Segmentation fault.
> test.php has only 4-5 lines, for connecting to oracle, and printing data
> from one table, using same class as pages on the web.
>
> Anyone can help?
>
> Thanks,
> Radovan