Skip to content

Commit

Permalink
fix build, catch up with linux part for #66048
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed May 13, 2015
1 parent f69b30e commit 890d482
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/php_open_temporary_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 890d482

Please sign in to comment.