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

Bug #19662 addModify is very slow in a loop
Submitted: 2012-10-22 02:27 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 49 - 3 = ?

 
 [2012-10-22 02: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 11:04 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Duplicate