diff options
| author | Uwe Schindler <thetaphi@php.net> | 2005-04-03 19:16:23 +0000 |
|---|---|---|
| committer | Uwe Schindler <thetaphi@php.net> | 2005-04-03 19:16:23 +0000 |
| commit | 3fb36bf08edc4ca5446df1dfa3d75bb983117ada (patch) | |
| tree | 6cf134b21f1146182692cf22cd2c1467f2af56f2 /sapi/nsapi/nsapi.c | |
| parent | ca10457a581ea760bfb8307489013f44bf8118ff (diff) | |
| download | php-git-3fb36bf08edc4ca5446df1dfa3d75bb983117ada.tar.gz | |
Add sapi.get_request_time() to NSAPI
Diffstat (limited to 'sapi/nsapi/nsapi.c')
| -rw-r--r-- | sapi/nsapi/nsapi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 47f7971762..7b1e301555 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -708,6 +708,11 @@ static void nsapi_log_message(char *message) log_error(LOG_INFORM, pblock_findval("fn", rc->pb), rc->sn, rc->rq, "%s", message); } +static time_t sapi_nsapi_get_request_time(TSRMLS_D) +{ + return REQ_TIME( ((nsapi_request_context *)SG(server_context))->rq ); +} + static int php_nsapi_startup(sapi_module_struct *sapi_module) { if (php_module_startup(sapi_module, &nsapi_module_entry, 1)==FAILURE) { @@ -743,7 +748,7 @@ static sapi_module_struct nsapi_sapi_module = { sapi_nsapi_register_server_variables, /* register server variables */ nsapi_log_message, /* Log message */ - NULL, /* Get request time */ + sapi_nsapi_get_request_time, /* Get request time */ NULL, /* Block interruptions */ NULL, /* Unblock interruptions */ |
