]> granicus.if.org Git - php/commitdiff
In theory this will fix a problem in Window trying to delete a not closed
authorTomas V.V.Cox <cox@php.net>
Fri, 26 Jul 2002 15:39:16 +0000 (15:39 +0000)
committerTomas V.V.Cox <cox@php.net>
Fri, 26 Jul 2002 15:39:16 +0000 (15:39 +0000)
file

#if so, other fixes like that may be needed

pear/Archive/Tar.php

index 3796ae2451fa916b5097b972ba141d2a5633a646..c2a89c7b3cfc47fe608bc86d5f56b2b2fbcb8356 100644 (file)
@@ -880,8 +880,10 @@ class Archive_Tar extends PEAR
       else
         $v_binary_data = @fread($this->_file, 512);
 
-      if (!$this->_readHeader($v_binary_data, $v_header))
+      if (!$this->_readHeader($v_binary_data, $v_header)) {
+        fclose($this->_file);
         return false;
+      }
 
       if ($v_header['filename'] == '')
         continue;