php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23931 Archive_Tar long filenames not recognized by Winzip or PicoZip
Submitted: 2003-05-31 18:10 UTC Modified: 2003-06-24 16:23 UTC
From: greg at chiaraquartet dot net Assigned: vblavet (profile)
Status: Closed Package: PEAR related
PHP Version: 4.3.2 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: greg at chiaraquartet dot net
New email:
PHP Version: OS:

 

 [2003-05-31 18:10 UTC] greg at chiaraquartet dot net
Hi,

After applying fixes to bugs in System.php, and Packager.php relating to other issues, and changing the separator for createModify to ";" instead of " ", the generated .tgz can't be extracted by either Winzip or PicoZip.

In Winzip, the files whose paths are longer than 99 characters appear to be truncated 1 letter short, so basicindex.tpl becomes basicindex.tp

In PicoZip, the files all have 100666 added to their end so basicindex.tpl becomes basicindex.tp100666

I can't tell you if this is a problem in both Winzip and PicoZip or a problem in Archive_Tar, but it might be a good idea to support 2 of the most popular extraction tools.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-24 16:23 UTC] vblavet@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Added a new attribute in Archive_Tar to change the separator while adding several files in a single char string. This attribute must be set with the new method setAttribute(). The default separator remains ' ' for backward Compatibility.
Sample :
$archive->setAttribute(ARCHIVE_TAR_ATT_SEPARATOR, ',');
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 14:03:37 2021 UTC