svn: /php/php-src/branches/PHP_5_3/main/ SAPI.c

From: Date: Wed, 16 Mar 2011 23:54:14 +0000
Subject: svn: /php/php-src/branches/PHP_5_3/main/ SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-64694@lists.php.net to get a copy of this message
pajoye Wed, 16 Mar 2011 23:54:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309319 Log: - MFH: 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/branches/PHP_5_3/main/SAPI.c Modified: php/php-src/branches/PHP_5_3/main/SAPI.c =================================================================== --- php/php-src/branches/PHP_5_3/main/SAPI.c 2011-03-16 21:20:47 UTC (rev 309318) +++ php/php-src/branches/PHP_5_3/main/SAPI.c 2011-03-16 23:54:14 UTC (rev 309319) @@ -78,6 +78,9 @@ #ifdef ZTS ts_allocate_id(&sapi_globals_id, sizeof(sapi_globals_struct), (ts_allocate_ctor) sapi_globals_ctor, (ts_allocate_dtor) sapi_globals_dtor); +# ifdef PHP_WIN32 + _configthreadlocale(_ENABLE_PER_THREAD_LOCALE); +# endif #else sapi_globals_ctor(&sapi_globals); #endif

« previous php.cvs (#64694) next »