Bug #19662 [Opn->Dup]: addModify is very slow in a loop

From: Date: Mon, 22 Oct 2012 06:04:49 +0000
Subject: Bug #19662 [Opn->Dup]: addModify is very slow in a loop
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9201@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19662&edit=1 ID: 19662 Updated by: daniel.oconnor@gmail.com Reported By: anees dot ka at mistralsolutions dot com Summary: addModify is very slow in a loop -Status: Open +Status: Duplicate Type: Bug Package: Archive_Tar Operating System: linux Package Version: 1.3.10 PHP Version: 5.3.7 Roadmap Versions: New Comment: -Status: Open +Status: Duplicate Previous Comments: ------------------------------------------------------------------------ [2012-10-21 22:27:43] aneeska 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? ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19662&edit=1

« previous php.pear.bugs (#9201) next »