Re: Segmentation fault on PHP CLI

From: Date: Sat, 11 Aug 2007 02:14:19 +0000
Subject: Re: Segmentation fault on PHP CLI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260670@lists.php.net to get a copy of this message
On Thu, August 9, 2007 8:43 am, Martin Marques wrote: > I have a script which I run from cron. I'm testing it directly from > the > console: > > /usr/bin/php -f /path/to/script.php > > The thing is: > > Script executes great, and everything it has to do gets done, but it > throughs a segmentation fault at the end. > > Is there anyway to debug PHP CLI? I'm using php5 from debian etch: You'll have to recompile with --enable-debug, but, yes, you can debug PHP CLI. Actually, it's even easier than debugging webserver SAPIs, really, as you don't have to jump through the hoop of starting Apache with -X or whatever to get the single instance in the foreground. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#260670) next »