]> granicus.if.org Git - php/commitdiff
Fixed a bug with calculation of REQUEST_TIME in apache2
authorIlia Alshanetsky <iliaa@php.net>
Thu, 23 Jun 2011 14:12:50 +0000 (14:12 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 23 Jun 2011 14:12:50 +0000 (14:12 +0000)
sapi/apache2handler/sapi_apache2.c

index 48eea2b6fb45ec6837b7d84ee9ab7eb46d542b46..a7f250d51251c3007a65d394a3fe1fe4aae79f8b 100644 (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;