bjori           Thu Dec 27 02:10:26 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/main       fopen_wrappers.c 
  Log:
  MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.)
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/fopen_wrappers.c?r1=1.175.2.3.2.16&r2=1.175.2.3.2.17&diff_format=u
Index: php-src/main/fopen_wrappers.c
diff -u php-src/main/fopen_wrappers.c:1.175.2.3.2.16 
php-src/main/fopen_wrappers.c:1.175.2.3.2.17
--- php-src/main/fopen_wrappers.c:1.175.2.3.2.16        Tue Oct  9 10:06:34 2007
+++ php-src/main/fopen_wrappers.c       Thu Dec 27 02:10:26 2007
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: fopen_wrappers.c,v 1.175.2.3.2.16 2007/10/09 10:06:34 scottmac Exp $ */
+/* $Id: fopen_wrappers.c,v 1.175.2.3.2.17 2007/12/27 02:10:26 bjori Exp $ */
 
 /* {{{ includes
  */
@@ -620,6 +620,7 @@
                                 * relatively referenced file is accessible */
                                copy_len = strlen(filepath) > MAXPATHLEN - 1 ? 
MAXPATHLEN - 1 : strlen(filepath);
                                real_path = estrndup(filepath, copy_len);
+                               close(fdtest);
                                return real_path;
                        } else {
                                cwd[0] = '\0';

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

Reply via email to