|  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
 [2003-05-31 18:10 UTC] greg at chiaraquartet dot net

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

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-24 16:23 UTC]
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
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the 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: Fri Sep 17 08:03:36 2021 UTC