seconds not microseconds and to use TSRM stuff correctly.
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;
}
}
-static time_t php_apache_sapi_get_request_time(void) {
- php_struct *ctx;
- TSRMLS_FETCH();
-
- ctx = SG(server_context);
-
- return ctx->r->request_time;
+static time_t php_apache_sapi_get_request_time(TSRMLS_D) {
+ php_struct *ctx = SG(server_context);
+ return apr_time_sec(ctx->r->request_time);
}
extern zend_module_entry php_apache_module;