Re: Segmentation fault on PHP CLI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stut wrote:
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:

$ php -v
PHP 5.2.0-8+etch7 (cli) (built: Jul  2 2007 21:46:15)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

BTW: all this is on the development server. On the production server the cron runs without this problem.

Is PHP on the production server the same old version? I would start by upgrading your development server to the latest version as you may be hitting a known bug that's already been fixed.

Same version on both. The idea is to use the same version, so we don't end up with unhappy results when putting new stuff in production.


--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' ||
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador,
    del Litoral             |   Administrador
---------------------------------------------------------

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux