From: Uwe Schindler Date: Sat, 29 Nov 2008 23:44:44 +0000 (+0000) Subject: MFH: support stat cache of webserver (like apache does) X-Git-Tag: php-5.2.8~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45606014378c3e486477adf70e4b893c3170ca76;p=php MFH: support stat cache of webserver (like apache does) --- diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 1db371c49e..74592f0a46 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -754,6 +754,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 */ @@ -767,7 +774,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 */