thetaphi Sat Nov 29 23:44:09 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/sapi/nsapi nsapi.c Log: MFH: support stat cache of webserver (like apache does) http://cvs.php.net/viewvc.cgi/php-src/sapi/nsapi/nsapi.c?r1=1.69.2.3.2.6.2.12&r2=1.69.2.3.2.6.2.13&diff_format=u Index: php-src/sapi/nsapi/nsapi.c diff -u php-src/sapi/nsapi/nsapi.c:1.69.2.3.2.6.2.12 php-src/sapi/nsapi/nsapi.c:1.69.2.3.2.6.2.13 --- php-src/sapi/nsapi/nsapi.c:1.69.2.3.2.6.2.12 Sat Nov 29 19:57:49 2008 +++ php-src/sapi/nsapi/nsapi.c Sat Nov 29 23:44:08 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: nsapi.c,v 1.69.2.3.2.6.2.12 2008/11/29 19:57:49 thetaphi Exp $ */ +/* $Id: nsapi.c,v 1.69.2.3.2.6.2.13 2008/11/29 23:44:08 thetaphi Exp $ */ /* * PHP includes @@ -321,7 +321,7 @@ PHP_MINFO_FUNCTION(nsapi) { php_info_print_table_start(); - php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.69.2.3.2.6.2.12 $"); + php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.69.2.3.2.6.2.13 $"); php_info_print_table_row(2, "Server Software", system_version()); php_info_print_table_row(2, "Sub-requests with nsapi_virtual()", (nsapi_servact_service)?((zend_ini_long("zlib.output_compression", sizeof("zlib.output_compression"), 0))?"not supported with zlib.output_compression":"enabled"):"not supported on this platform" ); @@ -809,6 +809,13 @@ 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 @@ 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 */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php