From: Ben Mansell Date: Tue, 6 Mar 2001 15:09:15 +0000 (+0000) Subject: Thread hashtable was being initialized with a size of 1! Changed to 128 as X-Git-Tag: php-4.0.5RC1~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a40f208ab802ba353e80dd01597c0bc210f3a415;p=php Thread hashtable was being initialized with a size of 1! Changed to 128 as a more sensible number. # Also could change the 'expected resources' parameter from 1, but I # haven't tested that bit yet ---------------------------------------------------------------------- --- diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index f412f860c5..ac299b715c 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -770,7 +770,11 @@ __declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, L { switch (fdwReason) { case DLL_PROCESS_ATTACH: - tsrm_startup(1, 1, TSRM_ERROR_LEVEL_CORE, "C:\\TSRM.log"); +#ifdef WITH_ZEUS + tsrm_startup(128, 1, TSRM_ERROR_LEVEL_CORE, "TSRM.log"); +#else + tsrm_startup(128, 1, TSRM_ERROR_LEVEL_CORE, "C:\\TSRM.log"); +#endif sapi_startup(&isapi_sapi_module); if (isapi_sapi_module.startup) { isapi_sapi_module.startup(&sapi_module);