From c921ceb49c5df9b3ae71d9ef451093e1abbc1720 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 4 May 2004 14:54:01 +0000 Subject: Improve stability. Give it a new CLSID and change the engine name to ActivePHP5. Globals registered by the scripting host are now auto-globals and don't need to be declared global when accessed from within functions. --- sapi/activescript/php5activescript.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sapi/activescript/php5activescript.c') diff --git a/sapi/activescript/php5activescript.c b/sapi/activescript/php5activescript.c index 6aa4b41495..93222fdbf8 100644 --- a/sapi/activescript/php5activescript.c +++ b/sapi/activescript/php5activescript.c @@ -127,7 +127,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: module_handle = hinstDLL; - tsrm_startup(128, 1, TSRM_ERROR_LEVEL_CORE, "C:\\TSRM.log"); + tsrm_startup(128, 32, TSRM_ERROR_LEVEL_CORE, "C:\\TSRM.log"); sapi_startup(&activescript_sapi_module); if (activescript_sapi_module.startup) { @@ -137,12 +137,14 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: + //OutputDebugString("THREAD_DETACH\n"); ts_free_thread(); break; case DLL_PROCESS_DETACH: if (activescript_sapi_module.shutdown) { activescript_sapi_module.shutdown(&sapi_module); } + //OutputDebugString("PROCESS_DETACH\n"); tsrm_shutdown(); break; } -- cgit v1.2.1