Hi folks.  I've written a CMS where I work, the publishing guts of which
is executed through a php script called from my crontab every minute.

Every so often (it's happened roughly 17 times since July 22) I get
parse errors in my log file when the scripts run into errors while
executing.

This is very strange, since the code in these files doesn't change, and
some of them are from the fairly ubiquitous ADODB class, and some of
them are from my own.

Below are the errors in my log file, and beneath each the code from the
corresponding line which throws the error.

Parse error: parse error in /u0/path/to/classes/adodb/adodb.inc.php on
line 3382
        LINE 3382:      $ADODB_LASTDB = $db;

Parse error: parse error in /u0/path/to/classes/adodb/adodb.inc.php on
line 848
        LINE 848:       } else if ($this->_queryID === true) {
        
Parse error: parse error in /u0/path/to/classes/adodb/adodb-time.inc.php
on line 748
        LINE 748:       $dates .=
sprintf('%s%04d',($gmt<0)?'+':'-',abs($gmt)/36); break;
        
Parse error: parse error, expecting `')'' in
/u0/path/to/classes/adodb/adodb-time.inc.php on line 850
        LINE 850:       $_month_table_leaf =
array("",31,29,31,30,31,30,31,31,30,31,30,31);

Parse error: parse error, expecting `$' in
/u0/path/to/cmsutilDEV/monitor/cms.monitor.monitor_content.inc.php on
line 77
        LINE 77:        $commit == true ? $this->conn->CommitTrans() :
$this->conn->RollbackTrans();

Parse error: parse error in
/u0/path/to/cmsutilDEV/monitor/cms.monitor.monitor_content.inc.php on
line 520
        LINE 520:       if ($rs->RecordCount() >= 1)

Does anyone have any idea why I might be getting these errors?  The code
above, to me at least, doesn't look like it should be throwing parse
errors.

The script which is called by my crontab to start this process executes
every minute, so I find it very strange that I'm getting these sporadic
error messages.

Can any one shed any light on this for me?

Cheers and TIA,

Pablo

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

Reply via email to