From: Anatol Belski Date: Wed, 13 May 2015 07:05:58 +0000 (+0200) Subject: fix build, catch up with linux part for #66048 X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~42^2~94^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=890d482197f855a530ca7163cb27d8015fce9e23;p=php fix build, catch up with linux part for #66048 --- diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index edd27a5216..b44b8859aa 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -207,11 +207,11 @@ PHPAPI const char* php_get_temporary_directory(void) DWORD len = GetTempPath(sizeof(sTemp),sTemp); assert(0 < len); /* should *never* fail! */ if (sTemp[len - 1] == DEFAULT_SLASH) { - temporary_directory = zend_strndup(sTemp, len - 1); + PG(php_sys_temp_dir) = zend_strndup(sTemp, len - 1); } else { - temporary_directory = zend_strndup(sTemp, len); + PG(php_sys_temp_dir) = zend_strndup(sTemp, len); } - return temporary_directory; + return PG(php_sys_temp_dir); } #else /* On Unix use the (usual) TMPDIR environment variable. */