diff options
author | Sebastian Bergmann <sebastian@php.net> | 2002-02-02 05:43:55 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2002-02-02 05:43:55 +0000 |
commit | 3ff94ed265f6315a52abdc595417550dcd3e1cd0 (patch) | |
tree | 3ae017cde5dae1020937d404e0ce3d30edba520c | |
parent | 26f1840e57b50a053e3918dc0df6756ee57c868c (diff) | |
download | php-git-3ff94ed265f6315a52abdc595417550dcd3e1cd0.tar.gz |
Fix thread-safe build.
-rw-r--r-- | main/fopen_wrappers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index d01cf1e97b..7cf55651d4 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -457,7 +457,7 @@ PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char ** /* Absolute path open */ if (IS_ABSOLUTE_PATH(filename, filename_length)) { - if ((php_check_safe_mode_include_dir(filename)) == 0) + if ((php_check_safe_mode_include_dir(filename TSRMLS_CC)) == 0) /* filename is in safe_mode_include_dir (or subdir) */ return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC); @@ -511,7 +511,7 @@ PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char ** if (PG(safe_mode)) { if (VCWD_STAT(trypath, &sb) == 0) { /* file exists ... check permission */ - if ((php_check_safe_mode_include_dir(trypath) == 0) || + if ((php_check_safe_mode_include_dir(trypath TSRMLS_CC) == 0) || php_checkuid(trypath, mode, CHECKUID_CHECK_MODE_PARAM)) /* UID ok, or trypath is in safe_mode_include_dir */ fp = php_fopen_and_set_opened_path(trypath, mode, opened_path TSRMLS_CC); |