summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert256 <herbert@groot.jebbink.nl>2020-06-24 09:44:35 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-06-24 14:41:50 +0200
commit4a26628b292b7735d1d220509eab1155346ddc6e (patch)
tree0ca38db0611792e7c4f61d82c32526602ecda1d9
parente94126aac74a80749c7bcf00f5faa9ad9542c94b (diff)
downloadphp-git-4a26628b292b7735d1d220509eab1155346ddc6e.tar.gz
Fixed bug #79030 Use usec from apache request time
Don't unnecessarily truncate to milliseconds. Closes GH-5760.
-rw-r--r--NEWS4
-rw-r--r--sapi/apache2handler/sapi_apache2.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5ae4e5a165..eb71c9f984 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 7.3.21
+- Apache:
+ . Fixed bug #79030 (Upgrade apache2handler's php_apache_sapi_get_request_time
+ to return usec). (Herbert256)
+
- FTP:
. Fixed bug #55857 (ftp_size on large files). (cmb)
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;