Skip to content

Commit

Permalink
Fixed bug #70002 TS issues with temporary dir handling
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Jul 28, 2015
1 parent daa0aba commit ce5c450
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
PHP NEWS
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2015, PHP 5.5.28

** PHP 5.5 is in security-only mode , please do not commit to this branch **

- Core:
. Fixed bug #70002 (TS issues with temporary dir handling). (Anatol)

9 Jul 2015, PHP 5.5.27

- Core:
Expand Down
10 changes: 9 additions & 1 deletion main/php_open_temporary_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ce5c450

Please sign in to comment.