Fixed a bug with calculation of REQUEST_TIME in apache2

This commit is contained in:
Ilia Alshanetsky 2011-06-23 14:12:50 +00:00
parent 73b6310098
commit 86c44e119f

View File

@ -338,7 +338,7 @@ static void php_apache_sapi_log_message_ex(char *msg, request_rec *r TSRMLS_DC)
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;