diff options
author | Anatol Belski <ab@php.net> | 2017-09-21 10:32:09 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-09-21 10:32:09 +0200 |
commit | da2f58183377571fc7f10e5bdae1786f46fb9639 (patch) | |
tree | 69bf566378613725a05a7253ee8fce3d1e06fe84 | |
parent | 418f97443aa44644bdf81b96fb726518754724f5 (diff) | |
download | php-git-da2f58183377571fc7f10e5bdae1786f46fb9639.tar.gz |
Fix thread safety
-rw-r--r-- | main/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c index 6050d0db31..48c1a63c72 100644 --- a/main/main.c +++ b/main/main.c @@ -127,8 +127,8 @@ PHPAPI int core_globals_id; #define SAFE_FILENAME(f) ((f)?(f):"-") static char *get_safe_charset_hint(void) { - static char *lastHint = NULL; - static char *lastCodeset = NULL; + ZEND_TLS char *lastHint = NULL; + ZEND_TLS char *lastCodeset = NULL; char *hint = SG(default_charset); size_t len = strlen(hint); size_t i = 0; |