Closed (fixed)
Project:
Path redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2009 at 12:43 UTC
Updated:
16 Feb 2009 at 01:40 UTC
The new "last_used" column is populated by the value of the PHP global $_SERVER['REQUEST_TIME']. But unfortunately this key is not present on all webservers in the $_SERVER global array (at least it's not on my blog's hosting server which is an Apache 1.3.34 and PHP v4.4.4). Please, use the return value of the time() PHP function instead. Thanks.
Comments
Comment #1
dave reidThanks very much for the bug report! I forget about PHP4 sometimes (*grumbles*) since I do so much dev on PHP 5 and Drupal 7.x, which requires 5.2. I have replaced all the instances of $_SERVER['REQUEST_TIME'] with time().
Comment #2
müzso commentedThanks for the quick fix. It seems I was mistaken too. I thought that all REQUEST_* variables in the
$_SERVERglobal come from the webserver. Now I see in the PHP docs that $_SERVER['REQUEST_TIME'] is something "new" that is provided solely by PHP (and came with PHP v5.1.0).