summaryrefslogtreecommitdiff
path: root/sapi/activescript/php5activescript.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-04 14:54:01 +0000
committerWez Furlong <wez@php.net>2004-05-04 14:54:01 +0000
commitc921ceb49c5df9b3ae71d9ef451093e1abbc1720 (patch)
treef0b6c8bae667fc39506b7c0fa867df06e549275a /sapi/activescript/php5activescript.c
parentd6838a86f355f82dfde3c12253617924d7421896 (diff)
downloadphp-git-c921ceb49c5df9b3ae71d9ef451093e1abbc1720.tar.gz
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.
Diffstat (limited to 'sapi/activescript/php5activescript.c')
-rw-r--r--sapi/activescript/php5activescript.c4
1 files changed, 3 insertions, 1 deletions
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;
}