Skip to content

Commit 86c44e1

Browse files
author
Ilia Alshanetsky
committed
Fixed a bug with calculation of REQUEST_TIME in apache2
1 parent 73b6310 commit 86c44e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/apache2handler/sapi_apache2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static void php_apache_sapi_log_message_ex(char *msg, request_rec *r TSRMLS_DC)
338338
static double php_apache_sapi_get_request_time(TSRMLS_D)
339339
{
340340
php_struct *ctx = SG(server_context);
341-
return apr_time_as_msec(ctx->r->request_time);
341+
return ((double) apr_time_as_msec(ctx->r->request_time)) / 1000.0;
342342
}
343343

344344
extern zend_module_entry php_apache_module;

0 commit comments

Comments
 (0)