pajoye Tue, 15 Mar 2011 17:13:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309261
Log:
- make setlocale thread only, drastically reduce TS related crashes in error
mgt and other parts like pcre, and actually a good thing (tm)
Changed paths:
U php/php-src/trunk/main/SAPI.c
Modified: php/php-src/trunk/main/SAPI.c
===================================================================
--- php/php-src/trunk/main/SAPI.c 2011-03-15 17:03:59 UTC (rev 309260)
+++ php/php-src/trunk/main/SAPI.c 2011-03-15 17:13:44 UTC (rev 309261)
@@ -80,6 +80,7 @@
#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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php