diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2010-11-06 17:14:21 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2010-11-06 17:14:21 +0000 |
| commit | f89effd2a83de2b1d6381f9b9403a8328e0998b6 (patch) | |
| tree | 346940b3c9671b154de6f45a9afc1d0dc75f5c8c /sapi/apache2handler/sapi_apache2.c | |
| parent | d31e4e7f8e78f0ed4497de9ef4a8f3461d2ed6b3 (diff) | |
| download | php-git-f89effd2a83de2b1d6381f9b9403a8328e0998b6.tar.gz | |
Updated _SERVER['REQUEST_TIME'] to include microsecond precision.
Diffstat (limited to 'sapi/apache2handler/sapi_apache2.c')
| -rw-r--r-- | sapi/apache2handler/sapi_apache2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index f8eb2d47ea..de9228069b 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -335,10 +335,10 @@ static void php_apache_sapi_log_message_ex(char *msg, request_rec *r TSRMLS_DC) } } -static time_t php_apache_sapi_get_request_time(TSRMLS_D) +static double php_apache_sapi_get_request_time(TSRMLS_D) { php_struct *ctx = SG(server_context); - return apr_time_sec(ctx->r->request_time); + return apr_time_as_msec(ctx->r->request_time); } extern zend_module_entry php_apache_module; |
