com php-src: fix build, catch up with linux part for #66048: main/php_open_temporary_file.c
| From: | Anatol Belski | Date: | Wed, 13 May 2015 07:05:58 +0000 |
| Subject: | com php-src: fix build, catch up with linux part for #66048: main/php_open_temporary_file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86719@lists.php.net to get a copy of this message | ||
Commit: 890d482197f855a530ca7163cb27d8015fce9e23
Author: Anatol Belski <ab@php.net> Wed, 13 May 2015 09:05:58 +0200
Parents: f69b30eaae19e9636c56971e48603ff1be785725
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=890d482197f855a530ca7163cb27d8015fce9e23
Log:
fix build, catch up with linux part for #66048
Bugs:
https://bugs.php.net/66048
Changed paths:
M main/php_open_temporary_file.c
Diff:
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c
index edd27a5..b44b885 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. */