From 4a26628b292b7735d1d220509eab1155346ddc6e Mon Sep 17 00:00:00 2001 From: Herbert256 Date: Wed, 24 Jun 2020 09:44:35 +0200 Subject: Fixed bug #79030 Use usec from apache request time Don't unnecessarily truncate to milliseconds. Closes GH-5760. --- sapi/apache2handler/sapi_apache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/apache2handler') diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index 23eef816a8..9a48b92953 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -362,7 +362,7 @@ static void php_apache_sapi_log_message_ex(char *msg, request_rec *r) static double php_apache_sapi_get_request_time(void) { php_struct *ctx = SG(server_context); - return ((double) apr_time_as_msec(ctx->r->request_time)) / 1000.0; + return ((double) ctx->r->request_time) / 1000000.0; } extern zend_module_entry php_apache_module; -- cgit v1.2.1