From 168e8b9a44d1f384869a942995b30ac9a3dc224d Mon Sep 17 00:00:00 2001 From: Alexey Zakhlestin Date: Sun, 31 Aug 2008 14:50:10 +0000 Subject: [PATCH] remove special treatment of /tmp path --- ext/session/mod_files.c | 6 ++---- ext/session/tests/session_save_path_variation5.phpt | 8 -------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index e4e15974d1..ee7aad0ca1 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -296,10 +296,8 @@ PS_OPEN_FUNC(files) /* if save path is an empty string, determine the temporary dir */ save_path = php_get_temporary_directory(); - if (strcmp(save_path, "/tmp")) { - if (php_check_open_basedir(save_path TSRMLS_CC)) { - return FAILURE; - } + if (php_check_open_basedir(save_path TSRMLS_CC)) { + return FAILURE; } } diff --git a/ext/session/tests/session_save_path_variation5.phpt b/ext/session/tests/session_save_path_variation5.phpt index c196244e1f..2a6f8f8aaf 100644 --- a/ext/session/tests/session_save_path_variation5.phpt +++ b/ext/session/tests/session_save_path_variation5.phpt @@ -36,10 +36,6 @@ var_dump(mkdir($sessions)); var_dump(chdir($sessions)); ini_set("session.save_path", $directory); var_dump(session_save_path()); -var_dump(session_start()); -var_dump(session_save_path()); -var_dump(session_destroy()); -var_dump(session_save_path()); var_dump(rmdir($sessions)); echo "Done"; @@ -59,10 +55,6 @@ bool(true) Warning: ini_set(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d unicode(0) "" bool(true) -unicode(0) "" -bool(true) -unicode(0) "" -bool(true) Done -- 2.50.1