Skip to content

Commit

Permalink
MFH: support stat cache of webserver (like apache does)
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Nov 29, 2008
1 parent 63f6f50 commit 482d167
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sapi/nsapi/nsapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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 */
Expand Down

0 comments on commit 482d167

Please sign in to comment.