Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed bug #70002 TS issues with temporary dir handling
This commit is contained in:
Anatol Belski authored and Ferenc Kovacs committed 2015-08-06 09:23:18 +02:00
1 parent bbc213d3cf
commit f14dc0519c
1 file changed
+9 -1
+9 -1
View File
@@ -176,7 +176,15 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char **
/* }}} */
/* Cache the chosen temporary directory. */
static char* temporary_directory;
static
#ifdef ZTS
#ifdef PHP_WIN32
__declspec(thread)
#elif defined(__GNUC__)
__thread
#endif
#endif
char* temporary_directory;
PHPAPI void php_shutdown_temporary_directory(void)
{