]> granicus.if.org Git - php/commitdiff
Thread hashtable was being initialized with a size of 1! Changed to 128 as
authorBen Mansell <joosters@php.net>
Tue, 6 Mar 2001 15:09:15 +0000 (15:09 +0000)
committerBen Mansell <joosters@php.net>
Tue, 6 Mar 2001 15:09:15 +0000 (15:09 +0000)
a more sensible number.
# Also could change the 'expected resources' parameter from 1, but I
# haven't tested that bit yet
----------------------------------------------------------------------

sapi/isapi/php4isapi.c

index f412f860c517aec3ad195e12f015bbfeb03c6d9e..ac299b715c495ffb7f0ad59f629d9cee6e2625fe 100644 (file)
@@ -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);