Skip to content

Commit 5435a4a

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fixed bug #79030 Use usec from apache request time
2 parents 565baf0 + 4a26628 commit 5435a4a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2020, PHP 7.4.9
44

5+
- Apache:
6+
. Fixed bug #79030 (Upgrade apache2handler's php_apache_sapi_get_request_time
7+
to return usec). (Herbert256)
8+
59
- FTP:
610
. Fixed bug #55857 (ftp_size on large files). (cmb)
711

sapi/apache2handler/sapi_apache2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static void php_apache_sapi_log_message_ex(char *msg, request_rec *r)
362362
static double php_apache_sapi_get_request_time(void)
363363
{
364364
php_struct *ctx = SG(server_context);
365-
return ((double) apr_time_as_msec(ctx->r->request_time)) / 1000.0;
365+
return ((double) ctx->r->request_time) / 1000000.0;
366366
}
367367

368368
extern zend_module_entry php_apache_module;

0 commit comments

Comments
 (0)