]> granicus.if.org Git - php/commitdiff
- make setlocale thread only, drastically reduce TS related crashes in error mgt...
authorPierre Joye <pajoye@php.net>
Tue, 15 Mar 2011 17:13:44 +0000 (17:13 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 15 Mar 2011 17:13:44 +0000 (17:13 +0000)
main/SAPI.c

index dce548f32e5cf0a46db9b56085cedafbc7f6437a..9a41289a3ea14763c123eeefab6c36f3af03d947 100644 (file)
@@ -80,6 +80,7 @@ SAPI_API void sapi_startup(sapi_module_struct *sf)
 
 #ifdef ZTS
        ts_allocate_id(&sapi_globals_id, sizeof(sapi_globals_struct), (ts_allocate_ctor) sapi_globals_ctor, (ts_allocate_dtor) sapi_globals_dtor);
+       _configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
 #else
        sapi_globals_ctor(&sapi_globals);
 #endif