thetaphi                Sun Apr  3 15:16:23 2005 EDT

  Modified files:              
    /php-src/sapi/nsapi nsapi.c 
  Log:
  Add sapi.get_request_time() to NSAPI
  
http://cvs.php.net/diff.php/php-src/sapi/nsapi/nsapi.c?r1=1.66&r2=1.67&ty=u
Index: php-src/sapi/nsapi/nsapi.c
diff -u php-src/sapi/nsapi/nsapi.c:1.66 php-src/sapi/nsapi/nsapi.c:1.67
--- php-src/sapi/nsapi/nsapi.c:1.66     Mon Dec 20 14:33:39 2004
+++ php-src/sapi/nsapi/nsapi.c  Sun Apr  3 15:16:23 2005
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: nsapi.c,v 1.66 2004/12/20 19:33:39 rasmus Exp $ */
+/* $Id: nsapi.c,v 1.67 2005/04/03 19:16:23 thetaphi Exp $ */
 
 /*
  * PHP includes
@@ -310,7 +310,7 @@
 PHP_MINFO_FUNCTION(nsapi)
 {
        php_info_print_table_start();
-       php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.66 
$");
+       php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.67 
$");
        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" );
@@ -708,6 +708,11 @@
        log_error(LOG_INFORM, pblock_findval("fn", rc->pb), rc->sn, rc->rq, 
"%s", message);
 }
 
+static time_t sapi_nsapi_get_request_time(TSRMLS_D)
+{
+       return REQ_TIME( ((nsapi_request_context *)SG(server_context))->rq );
+}
+
 static int php_nsapi_startup(sapi_module_struct *sapi_module)
 {
        if (php_module_startup(sapi_module, &nsapi_module_entry, 1)==FAILURE) {
@@ -743,7 +748,7 @@
 
        sapi_nsapi_register_server_variables,   /* register server variables */
        nsapi_log_message,                      /* Log message */
-       NULL,                                                                   
/* Get request time */
+       sapi_nsapi_get_request_time,                    /* Get request time */
 
        NULL,                                   /* Block interruptions */
        NULL,                                   /* Unblock interruptions */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to