- Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of seconds)

This commit is contained in:
Felipe Pena 2012-07-08 14:05:28 -03:00
parent e3b9b1e6dc
commit 2019062cfc

View File

@ -311,7 +311,7 @@ php_apache_disable_caching(ap_filter_t *f)
static double php_apache_sapi_get_request_time(TSRMLS_D)
{
php_struct *ctx = SG(server_context);
return apr_time_as_msec(ctx->r->request_time);
return ((double) apr_time_as_msec(ctx->r->request_time)) / 1000.0;
}
extern zend_module_entry php_apache_module;