]> granicus.if.org Git - php/commitdiff
Bug #71596 Segmentation fault on ZTS with date function (setlocale)
authorAnatol Belski <ab@php.net>
Thu, 18 Feb 2016 18:13:07 +0000 (19:13 +0100)
committerAnatol Belski <ab@php.net>
Thu, 18 Feb 2016 18:13:07 +0000 (19:13 +0100)
main/main.c

index 877507d8b88bc446fb44ec76f030f2fd8d2863d7..ab55b5b8316abb3257b9b54112e40c6f4a92e77a 100644 (file)
@@ -1622,6 +1622,9 @@ int php_request_startup(TSRMLS_D)
 #endif /* HAVE_DTRACE */
 
 #ifdef PHP_WIN32
+# if defined(ZTS)
+       _configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
+# endif
        PG(com_initialized) = 0;
 #endif