cvs: pear /Archive_Tar package.xml package2.xml /Archive_Tar/Archive Tar.php

From: Date: Tue, 23 Jan 2007 02:21:18 +0000
Subject: cvs: pear /Archive_Tar package.xml package2.xml /Archive_Tar/Archive Tar.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44348@lists.php.net to get a copy of this message
cellog Tue Jan 23 02:21:18 2007 UTC Modified files: /pear/Archive_Tar package.xml package2.xml /pear/Archive_Tar/Archive Tar.php Log: fix Bug #9221: compression with bzip2 fails http://cvs.php.net/viewvc.cgi/pear/Archive_Tar/package.xml?r1=1.28&r2=1.29&diff_format=u Index: pear/Archive_Tar/package.xml diff -u pear/Archive_Tar/package.xml:1.28 pear/Archive_Tar/package.xml:1.29 --- pear/Archive_Tar/package.xml:1.28 Sat Dec 23 01:42:10 2006 +++ pear/Archive_Tar/package.xml Tue Jan 23 02:21:18 2007 @@ -28,20 +28,13 @@ </maintainer> </maintainers> <release> - <version>1.3.2</version> - <date>2006-12-22</date> + <version>1.3.3</version> + <date>2007-01-30</date> <license>PHP License</license> <state>stable</state> <notes> -Correct Bug #4016 -Remove duplicate remove error display with '@' -Correct Bug #3909 : Check existence of OS_WINDOWS constant -Correct Bug #5452 fix for "lone zero block" when untarring packages -Change filemode (from pear-core/Archive/Tar.php v.1.21) -Correct Bug #6486 Can not extract symlinks -Correct Bug #6933 Archive_Tar (Tar file management class) Directory traversal -Correct Bug #8114 Files added on-the-fly not storing date -Correct Bug #9352 Bug on _dirCheck function over nfs path + minor bugfix release + * fix Bug #9921 compression with bzip2 fails </notes> <provides type="class" name="Archive_Tar" /> <provides type="function" name="Archive_Tar::create" /> @@ -62,6 +55,23 @@ </release> <changelog> <release> + <version>1.3.2</version> + <date>2005-03-17</date> + <license>PHP License</license> + <state>stable</state> + <notes> +Correct Bug #4016 +Remove duplicate remove error display with '@' +Correct Bug #3909 : Check existence of OS_WINDOWS constant +Correct Bug #5452 fix for "lone zero block" when untarring packages +Change filemode (from pear-core/Archive/Tar.php v.1.21) +Correct Bug #6486 Can not extract symlinks +Correct Bug #6933 Archive_Tar (Tar file management class) Directory traversal +Correct Bug #8114 Files added on-the-fly not storing date +Correct Bug #9352 Bug on _dirCheck function over nfs path +</notes> + </release> + <release> <version>1.3.1</version> <date>2005-03-17</date> <license>PHP License</license> http://cvs.php.net/viewvc.cgi/pear/Archive_Tar/package2.xml?r1=1.5&r2=1.6&diff_format=u Index: pear/Archive_Tar/package2.xml diff -u pear/Archive_Tar/package2.xml:1.5 pear/Archive_Tar/package2.xml:1.6 --- pear/Archive_Tar/package2.xml:1.5 Sat Dec 23 01:42:10 2006 +++ pear/Archive_Tar/package2.xml Tue Jan 23 02:21:18 2007 @@ -30,11 +30,10 @@ <email>stig@php.net</email> <active>no</active> </helper> - <date>2006-12-22</date> - <time>14:25:04</time> + <date>2007-01-30</date> <version> - <release>1.3.2</release> - <api>1.3.2</api> + <release>1.3.3</release> + <api>1.3.1</api> </version> <stability> <release>stable</release> @@ -42,15 +41,8 @@ </stability> <license uri="http://www.php.net/license">PHP License</license> <notes> -Correct Bug #4016 -Remove duplicate remove error display with &apos;@&apos; -Correct Bug #3909 : Check existence of OS_WINDOWS constant -Correct Bug #5452 fix for &quot;lone zero block&quot; when untarring packages -Change filemode (from pear-core/Archive/Tar.php v.1.21) -Correct Bug #6486 Can not extract symlinks -Correct Bug #6933 Archive_Tar (Tar file management class) Directory traversal -Correct Bug #8114 Files added on-the-fly not storing date -Correct Bug #9352 Bug on _dirCheck function over nfs path + minor bugfix release + * fix Bug #9921 compression with bzip2 fails </notes> <contents> <dir name="/"> @@ -82,6 +74,30 @@ <changelog> <release> <version> + <release>1.3.2</release> + <api>1.3.1</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2007-01-03</date> + <license uri="http://www.php.net/license">PHP License</license> + <notes> +Correct Bug #4016 +Remove duplicate remove error display with &apos;@&apos; +Correct Bug #3909 : Check existence of OS_WINDOWS constant +Correct Bug #5452 fix for &quot;lone zero block&quot; when untarring packages +Change filemode (from pear-core/Archive/Tar.php v.1.21) +Correct Bug #6486 Can not extract symlinks +Correct Bug #6933 Archive_Tar (Tar file management class) Directory traversal +Correct Bug #8114 Files added on-the-fly not storing date +Correct Bug #9352 Bug on _dirCheck function over nfs path + </notes> + </release> + <release> + <release> + <version> <release>1.3.1</release> <api>1.3.1</api> </version> http://cvs.php.net/viewvc.cgi/pear/Archive_Tar/Archive/Tar.php?r1=1.39&r2=1.40&diff_format=u Index: pear/Archive_Tar/Archive/Tar.php diff -u pear/Archive_Tar/Archive/Tar.php:1.39 pear/Archive_Tar/Archive/Tar.php:1.40 --- pear/Archive_Tar/Archive/Tar.php:1.39 Fri Dec 22 19:20:08 2006 +++ pear/Archive_Tar/Archive/Tar.php Tue Jan 23 02:21:18 2007 @@ -16,7 +16,7 @@ // | Author: Vincent Blavet <vincent@phpconcept.net> | // +----------------------------------------------------------------------+ // -// $Id: Tar.php,v 1.39 2006/12/22 19:20:08 cellog Exp $ +// $Id: Tar.php,v 1.40 2007/01/23 02:21:18 cellog Exp $ require_once 'PEAR.php'; @@ -28,7 +28,7 @@ * Creates a (compressed) Tar archive * * @author Vincent Blavet <vincent@phpconcept.net> -* @version $Revision: 1.39 $ +* @version $Revision: 1.40 $ * @package Archive */ class Archive_Tar extends PEAR @@ -599,7 +599,7 @@ if ($this->_compress_type == 'gz') $this->_file = @gzopen($this->_tarname, "wb9"); else if ($this->_compress_type == 'bz2') - $this->_file = @bzopen($this->_tarname, "wb"); + $this->_file = @bzopen($this->_tarname, "w"); else if ($this->_compress_type == 'none') $this->_file = @fopen($this->_tarname, "wb"); else @@ -652,7 +652,7 @@ if ($this->_compress_type == 'gz') $this->_file = @gzopen($v_filename, "rb"); else if ($this->_compress_type == 'bz2') - $this->_file = @bzopen($v_filename, "rb"); + $this->_file = @bzopen($v_filename, "r"); else if ($this->_compress_type == 'none') $this->_file = @fopen($v_filename, "rb"); else @@ -673,9 +673,11 @@ { if ($this->_compress_type == 'gz') $this->_file = @gzopen($this->_tarname, "r+b"); - else if ($this->_compress_type == 'bz2') - $this->_file = @bzopen($this->_tarname, "r+b"); - else if ($this->_compress_type == 'none') + else if ($this->_compress_type == 'bz2') { + $this->_error('Unable to open bz2 in read/write mode \'' + .$this->_tarname.'\' (limitation of bz2 extension)'); + return false; + } else if ($this->_compress_type == 'none') $this->_file = @fopen($this->_tarname, "r+b"); else $this->_error('Unknown or missing compression type (' @@ -1625,7 +1627,7 @@ if ($this->_compress_type == 'gz') $v_temp_tar = @gzopen($this->_tarname.".tmp", "rb"); elseif ($this->_compress_type == 'bz2') - $v_temp_tar = @bzopen($this->_tarname.".tmp", "rb"); + $v_temp_tar = @bzopen($this->_tarname.".tmp", "r"); if ($v_temp_tar == 0) { $this->_error('Unable to open file \''.$this->_tarname

« previous php.pear.cvs (#44348) next »