[Solar-talk] Narrowing down the apache crash bug

Paul M Jones pmjones at solarphp.com
Tue Sep 19 14:02:48 PDT 2006


On Sep 19, 2006, at 3:53 PM, Andrew Shell wrote:

> I've tried to write a stand alone script with as little code as  
> possible
> to replicate the error.
> Here's what I got.
> It doesn't seem to be a problem with preg_replace_callback or what we
> are returning.  It seems to be a combo of
> whitespace chars and number of lines

Dude, good detective work.  This almost looks like a memory error,  
caused by recursion in the PCRE parser, but obviously I'm not sure.   
This will sounds dumb, but: can you run the tests from the command  
line (not through the web server) and see what happens?  Secondarily,  
can you up the memory limit in PHP and see if that helps?

Let me know what you find out.



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list