In http://drupal.org/cvs?commit=198428 you changed:
define('XMLSITEMAP_TIME', time());
to:
define('XMLSITEMAP_TIME', $_SERVER['REQUEST_TIME']);

That server variable will not be available using PHP 4 or 5.0.

See also:
http://us.php.net/manual/en/function.time.php ("Timestamp of the start of the request is available in $_SERVER['REQUEST_TIME'] since PHP 5.1.")
http://us.php.net/manual/en/reserved.variables.server.php ("The timestamp of the start of the request. Available since PHP 5.1.0.")
http://drupal.org/node/367477
http://drupal.org/node/216357
http://drupal.org/node/302763

Comments

dave reid’s picture

Title: $_SERVER['REQUEST_TIME'] will not be defined on PHP 4 » $_SERVER['REQUEST_TIME'] will not be defined on PHP 4.x and 5.0.x
avpaderno’s picture

Title: $_SERVER['REQUEST_TIME'] will not be defined on PHP 4.x and 5.0.x » $_SERVER['REQUEST_TIME is not defined on PHP 4.x and 5.0.x

I will revert the change I made.
Thanks for the report.

avpaderno’s picture

Title: $_SERVER['REQUEST_TIME is not defined on PHP 4.x and 5.0.x » $_SERVER['REQUEST_TIME] is not defined on PHP 4.x and 5.0.x

This has been fixed in CVS.

avpaderno’s picture

Title: $_SERVER['REQUEST_TIME] is not defined on PHP 4.x and 5.0.x » $_SERVER['REQUEST_TIME'] is not defined on PHP 4.x and 5.0.x
Status: Active » Fixed

I am fixing the issue title, and changing the status.
Thanks again for the report.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.