summaryrefslogtreecommitdiff
path: root/sapi/apache2filter
diff options
context:
space:
mode:
authorFelipe Pena <felipensp@gmail.com>2012-07-08 14:05:28 -0300
committerFelipe Pena <felipensp@gmail.com>2012-07-08 14:05:28 -0300
commit2019062cfc6e4b4832aaca3b73891d93adc115a8 (patch)
tree0de85c456d0bc83b2698643d1df80928823f88cc /sapi/apache2filter
parente3b9b1e6dc016d9128ac5e9ed95aa5b1a5065e5f (diff)
downloadphp-git-2019062cfc6e4b4832aaca3b73891d93adc115a8.tar.gz
- Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of seconds)
Diffstat (limited to 'sapi/apache2filter')
-rw-r--r--sapi/apache2filter/sapi_apache2.c2
1 files changed, 1 insertions, 1 deletions
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;