com php-src: fix compilation with vc14: ext/standard/string.c
| From: | Anatol Belski | Date: | Wed, 22 Apr 2015 20:25:33 +0000 |
| Subject: | com php-src: fix compilation with vc14: ext/standard/string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86449@lists.php.net to get a copy of this message | ||
Commit: 6a1bf93ad9b538342b03866ec9afd7a77f347afd
Author: Anatol Belski <ab@php.net> Sun, 5 Apr 2015 20:59:26 +0200
Parents: 64114e405adbf2b538ca57e9dd2ab4e8d5fae9eb
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6a1bf93ad9b538342b03866ec9afd7a77f347afd
Log:
fix compilation with vc14
Changed paths:
M ext/standard/string.c
Diff:
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 01a87fe..6fef45b 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -197,7 +197,10 @@ PHPAPI struct lconv *localeconv_r(struct lconv *out)
tsrm_mutex_lock( locale_mutex );
# endif
-#if defined(PHP_WIN32) && defined(ZTS)
+/* cur->locinfo is struct __crt_locale_info which implementation is
+ hidden in vc14. TODO revisit this and check if a workaround available
+ and needed. */
+#if defined(PHP_WIN32) && _MSC_VER < 1900 && defined(ZTS)
{
/* Even with the enabled per thread locale, localeconv
won't check any locale change in the master thread. */