summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2007-08-23 13:09:27 +0000
committerJani Taskinen <jani@php.net>2007-08-23 13:09:27 +0000
commit197b51e796a197bc8991e2dec0899f524f5f00ca (patch)
tree2d556adb6b3c407419737998edd0c1038f39e31f
parentaf83e1cad28775003ca5861a5fb23716dd26ece4 (diff)
downloadphp-git-197b51e796a197bc8991e2dec0899f524f5f00ca.tar.gz
MFB: -r1.100.2.3.2.5
-rw-r--r--ext/session/mod_files.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 32f8abcc36..8072a0f563 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -278,8 +278,10 @@ PS_OPEN_FUNC(files)
/* if save path is an empty string, determine the temporary dir */
save_path = php_get_temporary_directory();
- if (php_check_open_basedir(save_path TSRMLS_CC)) {
- return FAILURE;
+ if (strcmp(save_path, "/tmp")) {
+ if (php_check_open_basedir(save_path TSRMLS_CC)) {
+ return FAILURE;
+ }
}
}