Browse Source

Fix thread safety

pull/2765/head
Anatol Belski 9 years ago
parent
commit
da2f581833
  1. 4
      main/main.c

4
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;

Loading…
Cancel
Save