From 632fc51d98494565a71ae97a81bd7d440dbb116a Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 18 Feb 2016 19:13:07 +0100 Subject: [PATCH] Bug #71596 Segmentation fault on ZTS with date function (setlocale) --- main/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/main.c b/main/main.c index 877507d8b8..ab55b5b831 100644 --- a/main/main.c +++ b/main/main.c @@ -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 -- 2.40.0