diff options
| author | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
| commit | 1159c84ab7849099d4a717cd05c2d920102040ed (patch) | |
| tree | ed4e48bb27e2ce5de5972fc3a29c1d24c818467a /main/php_open_temporary_file.c | |
| parent | fcc035108f7b8d2e169c5a592227b3df84d0573e (diff) | |
| download | php-git-1159c84ab7849099d4a717cd05c2d920102040ed.tar.gz | |
- TSRMLS_FETCH work
- whitespace fixes
Diffstat (limited to 'main/php_open_temporary_file.c')
| -rw-r--r-- | main/php_open_temporary_file.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index de4aacc998..ebbc6211f3 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -87,7 +87,7 @@ * SUCH DAMAGE. */ -static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **opened_path_p) +static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **opened_path_p TSRMLS_DC) { char *trailing_slash; FILE *fp; @@ -148,7 +148,7 @@ static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **open * This function should do its best to return a file pointer to a newly created * unique file, on every platform. */ -PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p) +PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) { static char path_tmp[] = "/tmp"; FILE *fp; @@ -162,11 +162,11 @@ PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **op *opened_path_p = NULL; } - if ((fp=php_do_open_temporary_file((char *) dir, pfx, opened_path_p))) { + if ((fp=php_do_open_temporary_file((char *) dir, pfx, opened_path_p TSRMLS_CC))) { return fp; } - if ((fp=php_do_open_temporary_file(getenv("TMPDIR"), pfx, opened_path_p))) { + if ((fp=php_do_open_temporary_file(getenv("TMPDIR"), pfx, opened_path_p TSRMLS_CC))) { return fp; } #if PHP_WIN32 @@ -175,17 +175,17 @@ PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **op TempPath = (char *) emalloc(MAXPATHLEN); if (GetTempPath(MAXPATHLEN, TempPath)) { - fp = php_do_open_temporary_file(TempPath, pfx, opened_path_p); + fp = php_do_open_temporary_file(TempPath, pfx, opened_path_p TSRMLS_CC); } efree(TempPath); return fp; } #else - if ((fp=php_do_open_temporary_file(P_tmpdir, pfx, opened_path_p))) { + if ((fp=php_do_open_temporary_file(P_tmpdir, pfx, opened_path_p TSRMLS_CC))) { return fp; } - if ((fp=php_do_open_temporary_file(path_tmp, pfx, opened_path_p))) { + if ((fp=php_do_open_temporary_file(path_tmp, pfx, opened_path_p TSRMLS_CC))) { return fp; } #endif |
