1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00

Fix thread safety

This commit is contained in:
Anatol Belski
2017-09-21 10:32:09 +02:00
parent 418f97443a
commit da2f581833
+2 -2
View File
@@ -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;