]> granicus.if.org Git - php/commitdiff
remove special treatment of /tmp path
authorAlexey Zakhlestin <indeyets@php.net>
Sun, 31 Aug 2008 14:50:10 +0000 (14:50 +0000)
committerAlexey Zakhlestin <indeyets@php.net>
Sun, 31 Aug 2008 14:50:10 +0000 (14:50 +0000)
ext/session/mod_files.c
ext/session/tests/session_save_path_variation5.phpt

index e4e15974d1c0289edb8b3a2fd480669ae9e9b5cc..ee7aad0ca1338e39e1e1c6181a2cc0a44e3b67f3 100644 (file)
@@ -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;
                }
        }
        
index c196244e1f6c40ac794cfaa2eef02dd98eb4e198..2a6f8f8aafc59baeb08176b01afd595dfeb76926 100644 (file)
@@ -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