php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch temporary_dir_ts for Apache2 related Bug #70002Patch version 2015-07-27 16:28 UTC Return to Bug #70002 | Download this patchThis patch is obsolete Obsoleted by patches:
Developer: ab@php.netdiff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index 2600246..44d4318 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -176,7 +176,16 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char ** /* }}} */ /* Cache the chosen temporary directory. */ -static char* temporary_directory; +#ifdef ZTS +# ifdef PHP_WIN32 +__declspec(thread) +# else +__thread +# endif +#else +static +#endif +char* temporary_directory; PHPAPI void php_shutdown_temporary_directory(void) { |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 11:01:29 2024 UTC |