]> granicus.if.org Git - php/commitdiff
- Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of...
authorFelipe Pena <felipensp@gmail.com>
Sun, 8 Jul 2012 17:05:28 +0000 (14:05 -0300)
committerFelipe Pena <felipensp@gmail.com>
Sun, 8 Jul 2012 17:05:28 +0000 (14:05 -0300)
sapi/apache2filter/sapi_apache2.c

index e8116f9eba05d633b62160ebafd48d17ae3d7fcf..0b51cfbe62f39ab39e66fc323e1f210915d6956c 100644 (file)
@@ -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;