> -----Original Message-----
> From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> questi...@freebsd.org] On Behalf Of Gary Kline
> Sent: 11. januar 2011 20:34
> To: Brad Mettee
> Cc: FreeBSD Mailing List
> Subject: Re: Which php??
> 
> On Tue, Jan 11, 2011 at 01:24:35PM -0500, Brad Mettee wrote:
> > Gary Kline wrote:
> > >On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote:
> > >
> >
> > If you execute "php -version" from the shell, what do you get?
> >
> 
> 
>       Rats. Now i get a segv......    Last night, no.   Ideas?

Recompile PHP with debug support. No, seriously.

I have had the same problem for years with different versions of PHP, and
hours of googling has led me to that answer. Seems that nobody can explain
exactly why enabling debug support fixes the problem, but it does.

Some boring history:
I ran into this problem trying to get Horde/IMP working properly way back in
2003. IMP needs some PEAR modules to work, and they refused to install
because PEAR needs PHP to work, and got cought on something and segfaulted
trying to install the PEAR modules. Reworking the loading order of the PHP
extensions seemed to work for some time, but then my changes got lost in
one of many PHP upgrades and things got stuffed again. For a while I "solved"
the problem by uninstalling Horde/IMP, but lately (since 2007-ish) I've hit this
snag every now and then. At some point I just gave up, and then I stumbled
across the "enable debug in php and php-extensions" trick, and it's been
painless ever since.

Speed-wise, I can't tell the difference. I haven't run any real tests because my
servers aren't very busy and thus I haven't seen the point, but I'll grant that
on busy servers it may very well affect performance. YMMV.

Good luck!

- Christer
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to