diff options
author | Pierre Joye <pajoye@php.net> | 2011-03-15 17:13:44 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-03-15 17:13:44 +0000 |
commit | 9319359dc9f7808fad0f59970587d0bee5d22643 (patch) | |
tree | e0bbf553b4c55180a847cabc5006f35d034509d6 /main/SAPI.c | |
parent | 76dd2d8e2c3a1fc4ec13b6489d00629b61470f91 (diff) | |
download | php-git-9319359dc9f7808fad0f59970587d0bee5d22643.tar.gz |
- make setlocale thread only, drastically reduce TS related crashes in error mgt and other parts like pcre, and actually a good thing (tm)
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index dce548f32e..9a41289a3e 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -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 |