NYCPHP Meetup

NYPHP.org

[nycphp-talk] On errors, PHP crashes Apache

Cliff Hirsch cliff at pinestream.com
Fri Jul 20 10:48:02 EDT 2007


On 7/20/07 10:31 AM, "csnyder" <chsnyder at gmail.com> wrote:

> On 7/20/07, Cliff Hirsch <cliff at pinestream.com> wrote:
>> 
>>  In my development environment, many PHP errors crash Apache.
>> 
>>  Is this typical behavior? Are there setting that I may have wrong or
>> setting I can change to prevent this?
>> 
> 
> Normally when Apache crashes you don't get an error, you just get
> blank browser window. Or perhaps you're looking at a log?
> 
> In my experience, PHP+Apache only crashes due to exceeding its memory
> limit--a clear sign that infinite recursion or looping is taking
> place.
> 

This is the error message I received from Apache:

Apache HTTP Server has encountered a problem and needs to close.  We are
sorry for the inconvenience.

It's one of those Windows popups that says you're screwed with technical
details, send error report to black hole, etc.
 
I single stepped, using Zend debugger. An infinite loop seems like a good
explanation. But the problem hits on the second pass through $traceArr =
debug_backtrace();

Cliff





More information about the talk mailing list