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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to