Re: PEAR install slow & eventual memory crash
| From: | Eric Butera | Date: | Wed, 09 May 2007 19:12:45 +0000 |
| Subject: | Re: PEAR install slow & eventual memory crash | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27257@lists.php.net to get a copy of this message | ||
I tried another test. I downloaded the PEAR base tgz file and put it
on my computer via wget. Then I looked in the Archive_Tar.txt file
for a simple example:
<?php
require_once 'Archive/Tar.php';
$tar_object = new Archive_Tar("PEAR-1.5.4.tgz", 'gz');
$v_list = $tar_object->listContent();
if ($v_list != 0) {
for ($i=0; $i<sizeof($v_list); $i++)
{
echo "Filename :'".$v_list[$i]['filename']."'\n";
echo " .size :'".$v_list[$i]['size']."' ";
echo " .mtime :'".$v_list[$i]['mtime']."' (".date("l dS of F Y
h:i:s A", $v_list[$i]['mtime']).") ";
echo " .mode :'".$v_list[$i]['mode']."' ";
echo " .uid :'".$v_list[$i]['uid']."' ";
echo " .gid :'".$v_list[$i]['gid']."' ";
echo " .typeflag :'".$v_list[$i]['typeflag']."' ";
echo " \n";
}
}
?>
That ran in 13.5 seconds. Yet 'pear upgrade pear' took over 40
minutes before running out of memory. Anybody with more PEAR
internals experience know where the problem could be?