Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.14

Bug #1693 Archive_Tar does not allow multiple addString()'s
Submitted: 2004-06-21 14:40 UTC
From: davey Assigned: vblavet
Status: Closed Package: Archive_Tar
PHP Version: 5.0.0RC3 (Release Candidate 3) OS: WinXP w/SP1
Roadmaps: (Not assigned)    

 [2004-06-21 14:40 UTC] davey
Description: ------------ Archive_Tar does no append strings to a tar file when using addString() as it should. Reproduce code: --------------- <?php require_once 'Archive/Tar.php'; $tar = new Archive_Tar('c:\windows\temp\file.tar'); $tar->addString('foo.txt', 'foo'); $tar->addString('bar.txt', 'bar'); $tar->addString('baz.txt', 'baz'); $tar->addString('bat.txt', 'bat'); ?> Expected result: ---------------- A tar with foo.txt, bar.txt, baz.txt, bat.txt Actual result: -------------- A tar with bat.txt in it


 [2004-07-01 10:50 UTC] vblavet
The problem occurs with .tar archive, but not with .tar.gz archive. Still working on the patch.
 [2004-07-01 11:07 UTC] vblavet
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on In case this was a website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. It was a missing "clearstatcache()" statement. At each add it does not see the filename, so it creates a new one erasing the older.