com php-src: Fix thread safety: main/main.c

From: Date: Thu, 21 Sep 2017 08:32:09 +0000
Subject: com php-src: Fix thread safety: main/main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99477@lists.php.net to get a copy of this message
Commit: da2f58183377571fc7f10e5bdae1786f46fb9639 Author: Anatol Belski <ab@php.net> Thu, 21 Sep 2017 10:32:09 +0200 Parents: 418f97443aa44644bdf81b96fb726518754724f5 Branches: PHP-7.0 PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=da2f58183377571fc7f10e5bdae1786f46fb9639 Log: Fix thread safety Changed paths: M main/main.c Diff: diff --git a/main/main.c b/main/main.c index 6050d0d..48c1a63 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;

« previous php.cvs (#99477) next »