iliaa           Thu Jun 25 01:35:15 2009 UTC

  Modified files:              
    /php-src/main       php_open_temporary_file.c 
  Log:
  
  MFB: Handle instances where TMPDIR = ""
  
http://cvs.php.net/viewvc.cgi/php-src/main/php_open_temporary_file.c?r1=1.48&r2=1.49&diff_format=u
Index: php-src/main/php_open_temporary_file.c
diff -u php-src/main/php_open_temporary_file.c:1.48 
php-src/main/php_open_temporary_file.c:1.49
--- php-src/main/php_open_temporary_file.c:1.48 Wed Jun 24 12:21:37 2009
+++ php-src/main/php_open_temporary_file.c      Thu Jun 25 01:35:15 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_open_temporary_file.c,v 1.48 2009/06/24 12:21:37 iliaa Exp $ */
+/* $Id: php_open_temporary_file.c,v 1.49 2009/06/25 01:35:15 iliaa Exp $ */
 
 #include "php.h"
 
@@ -199,7 +199,7 @@
        /* On Unix use the (usual) TMPDIR environment variable. */
        {
                char* s = getenv("TMPDIR");
-               if (s) {
+               if (s && *s) {
                        int len = strlen(s);
 
                        if (s[len - 1] == DEFAULT_SLASH) {



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

Reply via email to