From: Felipe Pena Date: Sun, 8 Jul 2012 17:05:28 +0000 (-0300) Subject: - Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of... X-Git-Tag: php-5.4.6RC1~69^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2019062cfc6e4b4832aaca3b73891d93adc115a8;p=php - Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of seconds) --- diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index e8116f9eba..0b51cfbe62 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -311,7 +311,7 @@ php_apache_disable_caching(ap_filter_t *f) 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;