Re: PHP Oci8 segmntation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Lang Sharpe,

It seems this line
> #undef HAVE_OCI8_SHARED_MODE

did the trick. Maybe it can help other ppl too.

Thanks a lot, i cant say how much you helped me with this.

Radovan

"Lang Sharpe" <lang@myself.com> wrote in message
20030813230533.63061.qmail@pb1.pair.com">news:20030813230533.63061.qmail@pb1.pair.com...
> 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
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux