indeyets                Sun Aug 31 14:50:10 2008 UTC

  Modified files:              
    /php-src/ext/session        mod_files.c 
    /php-src/ext/session/tests  session_save_path_variation5.phpt 
  Log:
  remove special treatment of /tmp path
  
http://cvs.php.net/viewvc.cgi/php-src/ext/session/mod_files.c?r1=1.118&r2=1.119&diff_format=u
Index: php-src/ext/session/mod_files.c
diff -u php-src/ext/session/mod_files.c:1.118 
php-src/ext/session/mod_files.c:1.119
--- php-src/ext/session/mod_files.c:1.118       Wed May 21 12:01:55 2008
+++ php-src/ext/session/mod_files.c     Sun Aug 31 14:50:10 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: mod_files.c,v 1.118 2008/05/21 12:01:55 tony2001 Exp $ */
+/* $Id: mod_files.c,v 1.119 2008/08/31 14:50:10 indeyets Exp $ */
 
 #include "php.h"
 
@@ -296,10 +296,8 @@
                /* 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;
                }
        }
        
http://cvs.php.net/viewvc.cgi/php-src/ext/session/tests/session_save_path_variation5.phpt?r1=1.6&r2=1.7&diff_format=u
Index: php-src/ext/session/tests/session_save_path_variation5.phpt
diff -u php-src/ext/session/tests/session_save_path_variation5.phpt:1.6 
php-src/ext/session/tests/session_save_path_variation5.phpt:1.7
--- php-src/ext/session/tests/session_save_path_variation5.phpt:1.6     Tue May 
27 18:16:04 2008
+++ php-src/ext/session/tests/session_save_path_variation5.phpt Sun Aug 31 
14:50:10 2008
@@ -36,10 +36,6 @@
 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 @@
 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
 
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to