]> granicus.if.org Git - php/commitdiff
Some nsapi.h specific ifdefs unified & corrected
authorUwe Schindler <thetaphi@php.net>
Sat, 29 Nov 2008 19:57:23 +0000 (19:57 +0000)
committerUwe Schindler <thetaphi@php.net>
Sat, 29 Nov 2008 19:57:23 +0000 (19:57 +0000)
sapi/nsapi/nsapi.c

index d02cd52e38cabaf4120cef3c82f714a078b164e1..e01df66c0ba9f746b0d4fdf116c3df0bd5c99579 100644 (file)
@@ -486,7 +486,7 @@ static void sapi_nsapi_flush(void *server_context)
        }
 
        /* 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 NSAPI_PUBLIC php6_init(pblock *pb, Session *sn, Request *rq)
        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);