mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
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.
This commit is contained in:
parent
d6838a86f3
commit
c921ceb49c
6 changed files with 212 additions and 63 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue