summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-07-26 15:39:16 +0000
committerTomas V.V.Cox <cox@php.net>2002-07-26 15:39:16 +0000
commitbf2a898a5f299f5877614b370da3f2ec40e3efc0 (patch)
treed9a35890547bd42a1905540f845e098cb32f021a
parentb0b22263528ed06b87e4c6ee651f5a9adade8f03 (diff)
downloadphp-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.php4
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;