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

Bug #19662 addModify is very slow in a loop
Submitted: 2012-10-21 21:27 UTC Modified: 2012-10-22 06:04 UTC
From: aneeska Assigned:
Status: Duplicate Package: Archive_Tar (version 1.3.10)
PHP Version: 5.3.7 OS: linux
Roadmaps: 1.3.11    
Subscription  


 [2012-10-21 21:27 UTC] aneeska (anees ka)
Description: ------------ $tar = new Archive_Tar($destination, true); $count = 0; foreach ($valid_files as $first) { $prefix = substr ($first, 0, (strrpos ($first, '/')+1)); $tar->addModify ($first, '', $prefix); $count++; echo "count = ".$count." prefix = ".$prefix." <br/>"; } Expected result: ---------------- To create a tar file of the name $destination Actual result: -------------- I have 188 files to compress and this loop is taking forever to complete. Is there anything I am doing wrong or is this normal?

Comments

 [2012-10-22 06:04 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Duplicate