diff options
author | Tomas V.V.Cox <cox@php.net> | 2002-07-26 15:39:16 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2002-07-26 15:39:16 +0000 |
commit | bf2a898a5f299f5877614b370da3f2ec40e3efc0 (patch) | |
tree | d9a35890547bd42a1905540f845e098cb32f021a | |
parent | b0b22263528ed06b87e4c6ee651f5a9adade8f03 (diff) | |
download | php-git-bf2a898a5f299f5877614b370da3f2ec40e3efc0.tar.gz |
In theory this will fix a problem in Window trying to delete a not closed
file
#if so, other fixes like that may be needed
-rw-r--r-- | pear/Archive/Tar.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pear/Archive/Tar.php b/pear/Archive/Tar.php index 3796ae2451..c2a89c7b3c 100644 --- a/pear/Archive/Tar.php +++ b/pear/Archive/Tar.php @@ -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; |