com php-src: - Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of seconds): sapi/apache2filter/sapi_apache2.c
| From: | Felipe Pena | Date: | Sun, 08 Jul 2012 17:05:28 +0000 |
| Subject: | com php-src: - Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of seconds): sapi/apache2filter/sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-69535@lists.php.net to get a copy of this message | ||
Commit: 2019062cfc6e4b4832aaca3b73891d93adc115a8
Author: Felipe Pena <felipensp@gmail.com> Sun, 8 Jul 2012 14:05:28 -0300
Parents: e3b9b1e6dc016d9128ac5e9ed95aa5b1a5065e5f
Branches: PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2019062cfc6e4b4832aaca3b73891d93adc115a8
Log:
- Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of
seconds)
Bugs:
https://bugs.php.net/62507
Changed paths:
M sapi/apache2filter/sapi_apache2.c
Diff:
diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c
index e8116f9..0b51cfb 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;