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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user