jani            Thu Aug 23 13:09:27 2007 UTC

  Modified files:              
    /php-src/ext/session        mod_files.c 
  Log:
  MFB: -r1.100.2.3.2.5
  
http://cvs.php.net/viewvc.cgi/php-src/ext/session/mod_files.c?r1=1.113&r2=1.114&diff_format=u
Index: php-src/ext/session/mod_files.c
diff -u php-src/ext/session/mod_files.c:1.113 
php-src/ext/session/mod_files.c:1.114
--- php-src/ext/session/mod_files.c:1.113       Fri Aug  3 01:40:05 2007
+++ php-src/ext/session/mod_files.c     Thu Aug 23 13:09:27 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: mod_files.c,v 1.113 2007/08/03 01:40:05 stas Exp $ */
+/* $Id: mod_files.c,v 1.114 2007/08/23 13:09:27 jani Exp $ */
 
 #include "php.h"
 
@@ -278,8 +278,10 @@
                /* 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;
+                       }
                }
        }
        

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

Reply via email to