cvs: pear /Archive_Tar/Archive Tar.php
| From: | Vincent Blavet | Date: | Sat, 19 Nov 2005 14:23:40 +0000 |
| Subject: | cvs: pear /Archive_Tar/Archive Tar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36377@lists.php.net to get a copy of this message | ||
vblavet Sat Nov 19 09:23:40 2005 EDT
Modified files:
/pear/Archive_Tar/Archive Tar.php
Log:
- Correct Bug #4016
- Remove duplicate remove error display with '@'
http://cvs.php.net/diff.php/pear/Archive_Tar/Archive/Tar.php?r1=1.29&r2=1.30&ty=u
Index: pear/Archive_Tar/Archive/Tar.php
diff -u pear/Archive_Tar/Archive/Tar.php:1.29 pear/Archive_Tar/Archive/Tar.php:1.30
--- pear/Archive_Tar/Archive/Tar.php:1.29 Thu Mar 17 16:02:31 2005
+++ pear/Archive_Tar/Archive/Tar.php Sat Nov 19 09:23:39 2005
@@ -16,7 +16,7 @@
// | Author: Vincent Blavet <vincent@phpconcept.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Tar.php,v 1.29 2005/03/17 21:02:31 vblavet Exp $
+// $Id: Tar.php,v 1.30 2005/11/19 14:23:39 vblavet Exp $
require_once 'PEAR.php';
@@ -27,7 +27,7 @@
* Creates a (compressed) Tar archive
*
* @author Vincent Blavet <vincent@phpconcept.net>
-* @version $Revision: 1.29 $
+* @version $Revision: 1.30 $
* @package Archive
*/
class Archive_Tar extends PEAR
@@ -797,14 +797,14 @@
$p_len = 1;
if ($this->_compress_type == 'gz') {
- @gzseek($this->_file, @gztell($this->_file)+($p_len*512));
+ @gzseek($this->_file, gztell($this->_file)+($p_len*512));
}
else if ($this->_compress_type == 'bz2') {
// ----- Replace missing bztell() and bzseek()
for ($i=0; $i<$p_len; $i++)
$this->_readBlock();
} else if ($this->_compress_type == 'none')
- @fseek($this->_file, @ftell($this->_file)+($p_len*512));
+ @fseek($this->_file, ftell($this->_file)+($p_len*512));
else
$this->_error('Unknown or missing compression type ('
.$this->_compress_type.')');
@@ -973,7 +973,7 @@
$p_filename = $this->_translateWinPath($p_filename, false);;
if (!$this->_writeHeaderBlock($p_filename, strlen($p_string),
- 0, 0, "", 0, 0))
+ time(), 384, "", 0, 0))
return false;
$i=0;