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
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