iliaa           Wed Jun 24 20:08:55 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/main       php_open_temporary_file.c 
  Log:
  Revert patch
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/php_open_temporary_file.c?r1=1.34.2.1.2.10.2.3&r2=1.34.2.1.2.10.2.4&diff_format=u
Index: php-src/main/php_open_temporary_file.c
diff -u php-src/main/php_open_temporary_file.c:1.34.2.1.2.10.2.3 
php-src/main/php_open_temporary_file.c:1.34.2.1.2.10.2.4
--- php-src/main/php_open_temporary_file.c:1.34.2.1.2.10.2.3    Wed Jun 24 
12:21:45 2009
+++ php-src/main/php_open_temporary_file.c      Wed Jun 24 20:08:54 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.10.2.3 2009/06/24 12:21:45 
iliaa Exp $ */
+/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.10.2.4 2009/06/24 20:08:54 
iliaa Exp $ */
 
 #include "php.h"
 
@@ -200,14 +200,7 @@
        {
                char* s = getenv("TMPDIR");
                if (s) {
-                       int len = strlen(s);
-
-                       if (s[len - 1] == DEFAULT_SLASH) {
-                               temporary_directory = zend_strndup(s, len - 1);
-                       } else {
-                               temporary_directory = zend_strndup(s, len);
-                       }
-
+                       temporary_directory = strdup(s);
                        return temporary_directory;
                }
        }



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

Reply via email to