Permalink
Browse files

Bug #19289 - apply patch by Derick Rethans

git-svn-id: https://svn.php.net/repository/pear/packages/Archive_Tar/trunk@323476 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 1f78c59 commit bfaddfed1a38e5037864ecd8cb772b1b40fab766 @mrook mrook committed Feb 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Archive/Tar.php
View
@@ -1775,7 +1775,7 @@ function _openAppend()
if ($this->_compress_type == 'gz') {
while (!@gzeof($v_temp_tar)) {
$v_buffer = @gzread($v_temp_tar, 512);
- if ($v_buffer == ARCHIVE_TAR_END_BLOCK) {
+ if ($v_buffer == ARCHIVE_TAR_END_BLOCK || strlen($v_buffer) == 0) {
// do not copy end blocks, we will re-make them
// after appending
continue;

0 comments on commit bfaddfe

Please sign in to comment.