PDA

View Full Version : quercus request for support for $_SERVER["REQUEST_TIME"]


ashamash
10-15-2009, 08:07 PM
The application I'm working on deploying using Quercus 4.0.1 (phpMyFAQ v2.5.2) uses $_SERVER["REQUEST_TIME"] extensively. According to the php documentation, this is included in PHP by default:

http://php.net/manual/en/reserved.variables.server.php

states:

REQUEST_TIME: The timestamp of the start of the request. Available since PHP 5.1.0.

The changes I've made to the quercus library to accommodate this are all com.caucho.quercus.env.ServerArrayValue:

At line #68:
private static final StringValue REQUEST_TIME_V
= new ConstStringValue("REQUEST_TIME");

and line #276:
super.put(REQUEST_TIME_V,
LongValue.create(System.currentTimeMillis()/1000));

Thanks!
Ari

nam
10-15-2009, 08:20 PM
I've submitted a bug report at:

http://bugs.caucho.com/view.php?id=3712

nam
11-05-2009, 08:01 PM
Fixed for 4.0.2.

ashamash
11-05-2009, 10:25 PM
Thanks for the quick turnaround!