Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2011 15:00:29 -0500
From:      Christer Solstrand Johannessen <christer@csj.no>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   RE: Which php??
Message-ID:  <AFA3E13074D7694F80D9DA93D46FDBAC491C3059A5@IAD2MBX02.mex02.mlsrvr.com>
In-Reply-To: <20110111193357.GC23123@thought.org>
References:  <20110110212143.GA8276@thought.org> <4D2B8320.1090501@ifdnrg.com>	<20110111164623.GB26859@thought.org> <AANLkTikZTcrcvuxtz%2BE6ccHv-7v8O0PkzNvow_CfnuvN@mail.gmail.com> <20110111175631.GA27569@thought.org>	<4D2CA063.8080008@pchotshots.com> <20110111193357.GC23123@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> questions@freebsd.org] On Behalf Of Gary Kline
> Sent: 11. januar 2011 20:34
> To: Brad Mettee
> Cc: FreeBSD Mailing List
> Subject: Re: Which php??
>=20
> 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?
> >
>=20
>=20
> 	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 i=
n
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 "solve=
d"
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 becau=
se 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AFA3E13074D7694F80D9DA93D46FDBAC491C3059A5>