From 516a19f1ecf8afa987c85f408f6f2f7c20d362c7 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Sat, 23 Oct 2004 12:56:20 +0000 Subject: Fix the get_request_time implementation for the 2.0 SAPIs to return seconds not microseconds and to use TSRM stuff correctly. --- sapi/apache2filter/sapi_apache2.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sapi/apache2filter') diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 99f8aa7853..ffc8dfbd5b 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -299,13 +299,10 @@ php_apache_disable_caching(ap_filter_t *f) return OK; } -static time_t -php_apache_sapi_get_request_time(void) +static time_t php_apache_sapi_get_request_time(TSRMLS_D) { - TSRMLS_FETCH(); php_struct *ctx = SG(server_context); - - return ctx->r->request_time; + return apr_time_sec(ctx->r->request_time); } extern zend_module_entry php_apache_module; -- cgit v1.2.1