|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-12-15 14:23 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
-PHP Version: 5.5.32
+PHP Version: Irrelevant
[2020-12-15 14:23 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
Description: ------------ I just realized that phardata.compress removes same name files in tar archives. I have multiple tar archives that contains multiple instances of files with the same name and when using the code below only the first occurrence of the file is preserved. Test script: --------------- <?php $p = new PharData('tarFile.tar',0); $p->compress(Phar::GZ); ?> Expected result: ---------------- The expected result is to preserve all files in the archive and just compress it. Actual result: -------------- Only first file (with the same name) is preserved.