Skip to content

Commit

Permalink
complete zts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Jan 29, 2013
1 parent 78d3e66 commit 748b376
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/session/mod_files.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ PS_OPEN_FUNC(files)

if (*save_path == '\0') {
/* if save path is an empty string, determine the temporary dir */
save_path = php_get_temporary_directory();
save_path = php_get_temporary_directory(TSRMLS_C);

if (php_check_open_basedir(save_path TSRMLS_CC)) {
return FAILURE;
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ PHP_FUNCTION(sys_get_temp_dir)
if (zend_parse_parameters_none() == FAILURE) {
return;
}
RETURN_STRING((char *)php_get_temporary_directory(), 1);
RETURN_STRING((char *)php_get_temporary_directory(TSRMLS_C), 1);
}
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion main/php_open_temporary_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BEGIN_EXTERN_C()
PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC);
PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, char **opened_path_p, zend_bool open_basedir_check TSRMLS_DC);
PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC);
PHPAPI const char *php_get_temporary_directory(void);
PHPAPI const char *php_get_temporary_directory(TSRMLS_D);
PHPAPI void php_shutdown_temporary_directory(void);
END_EXTERN_C()

Expand Down

0 comments on commit 748b376

Please sign in to comment.