]> granicus.if.org Git - php/commitdiff
support stat cache of webserver (like apache does)
authorUwe Schindler <thetaphi@php.net>
Sat, 29 Nov 2008 23:43:43 +0000 (23:43 +0000)
committerUwe Schindler <thetaphi@php.net>
Sat, 29 Nov 2008 23:43:43 +0000 (23:43 +0000)
sapi/nsapi/nsapi.c

index e01df66c0ba9f746b0d4fdf116c3df0bd5c99579..4ee97bdb12c7ce2bcbeeadc8b5811cea5f0d32ba 100644 (file)
@@ -805,6 +805,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 */
@@ -818,7 +825,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 */