thetaphi                Sat Nov 29 23:43:43 2008 UTC

  Modified files:              
    /php-src/sapi/nsapi nsapi.c 
  Log:
  support stat cache of webserver (like apache does)
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/nsapi/nsapi.c?r1=1.97&r2=1.98&diff_format=u
Index: php-src/sapi/nsapi/nsapi.c
diff -u php-src/sapi/nsapi/nsapi.c:1.97 php-src/sapi/nsapi/nsapi.c:1.98
--- php-src/sapi/nsapi/nsapi.c:1.97     Sat Nov 29 19:57:23 2008
+++ php-src/sapi/nsapi/nsapi.c  Sat Nov 29 23:43:43 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: nsapi.c,v 1.97 2008/11/29 19:57:23 thetaphi Exp $ */
+/* $Id: nsapi.c,v 1.98 2008/11/29 23:43:43 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.97 
$");
+       php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.98 
$");
        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" );
@@ -805,6 +805,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 */
@@ -818,7 +825,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

Reply via email to