Re: Segfault in PHP 5.2.1
| From: | Derick Rethans | Date: | Tue, 24 Apr 2007 20:22:48 +0000 |
| Subject: | Re: Segfault in PHP 5.2.1 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28999@lists.php.net to get a copy of this message | ||
On Tue, 24 Apr 2007, Pawe? Stradomski wrote:
> Derick Rethans wrote:
> > On Tue, 24 Apr 2007, David Lindstrom wrote:
> > > Still, PHP should never segfault?
> >
> > Almost never... stack overflows are "okay".
> >
>
> I' ve run into PHP segfaulting (infinte loop of two constructors) recently and
> I think it should not happen in any case - no matter if the PHP script
> running is buggy or not. I makes debugging difficult and brings unpredicatble
> results.
For debugging you install a debugger... which correctly warns you when
this happens. See: http://xdebug.org/docs-settings.php#max_nesting_level
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org