diff options
author | Uwe Schindler <thetaphi@php.net> | 2008-11-29 23:44:08 +0000 |
---|---|---|
committer | Uwe Schindler <thetaphi@php.net> | 2008-11-29 23:44:08 +0000 |
commit | 482d167a774905f48f27a2a9237f6fba947e6425 (patch) | |
tree | 3afef2ca4d0aa1d93ccff5c5736f3706efa26d1c | |
parent | 63f6f500a78c80a3a08f156f471162db42e20f3f (diff) | |
download | php-git-482d167a774905f48f27a2a9237f6fba947e6425.tar.gz |
MFH: support stat cache of webserver (like apache does)
-rw-r--r-- | sapi/nsapi/nsapi.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 7869942fda..a716a77088 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -809,6 +809,13 @@ static int php_nsapi_startup(sapi_module_struct *sapi_module) return SUCCESS; } +static struct stat* sapi_nsapi_get_stat(TSRMLS_D) +{ + return request_stat_path( + SG(request_info).path_translated, + ((nsapi_request_context *)SG(server_context))->rq + ); +} static sapi_module_struct nsapi_sapi_module = { "nsapi", /* name */ @@ -822,7 +829,7 @@ static sapi_module_struct nsapi_sapi_module = { sapi_nsapi_ub_write, /* unbuffered write */ sapi_nsapi_flush, /* flush */ - NULL, /* get uid */ + sapi_nsapi_get_stat, /* get uid/stat */ NULL, /* getenv */ php_error, /* error handler */ |