thetaphi                Sat Nov 29 19:57:23 2008 UTC

  Modified files:              
    /php-src/sapi/nsapi nsapi.c 
  Log:
  Some nsapi.h specific ifdefs unified & corrected
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/nsapi/nsapi.c?r1=1.96&r2=1.97&diff_format=u
Index: php-src/sapi/nsapi/nsapi.c
diff -u php-src/sapi/nsapi/nsapi.c:1.96 php-src/sapi/nsapi/nsapi.c:1.97
--- php-src/sapi/nsapi/nsapi.c:1.96     Sat Nov 29 19:36:40 2008
+++ php-src/sapi/nsapi/nsapi.c  Sat Nov 29 19:57:23 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: nsapi.c,v 1.96 2008/11/29 19:36:40 thetaphi Exp $ */
+/* $Id: nsapi.c,v 1.97 2008/11/29 19:57:23 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.96 
$");
+       php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.97 
$");
        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" );
@@ -486,7 +486,7 @@
        }
 
        /* flushing is only supported in iPlanet servers from version 6.1 on, 
make it conditional */
-#if defined(net_flush)
+#if NSAPI_VERSION >= 302
        if (net_flush(rc->sn->csd) < 0) {
                php_handle_aborted_connection();
        }
@@ -908,12 +908,10 @@
        int threads=128; /* default for server */
 
        /* fetch max threads from NSAPI and initialize TSRM with it */
-#if defined(pool_maxthreads)
-       threads=pool_maxthreads;
+       threads=conf_getglobals()->Vpool_maxthreads;
        if (threads<1) {
                threads=128; /* default for server */
        }
-#endif
        tsrm_startup(threads, 1, 0, NULL);
 
        core_globals = ts_resource(core_globals_id);



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

Reply via email to