From: Marcus Boerger Date: Fri, 21 Mar 2008 23:31:31 +0000 (+0000) Subject: - Damn forgot to remove the debug code X-Git-Tag: RELEASE_2_0_0a1~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efc1c1ea9949b242f4488d3d9438381b5f014591;p=php - Damn forgot to remove the debug code --- diff --git a/ext/phar/phar/pharcommand.inc b/ext/phar/phar/pharcommand.inc index f3426423c9..d2b6f3dace 100755 --- a/ext/phar/phar/pharcommand.inc +++ b/ext/phar/phar/pharcommand.inc @@ -1384,7 +1384,7 @@ class PharCommand extends CLICommand $mcount = 0; $compalg = array('GZ'=>0, 'BZ2'=>0); var_dump($phar); -try { + foreach(new RecursiveIteratorIterator($phar) as $ent) { $count++; if ($ent->isCompressed()) { @@ -1406,7 +1406,7 @@ try { $mcount++; } } -} catch(Exception $e) {echo $e;} + $infos['Entries'] = $count; $infos['Uncompressed-files'] = $ucount; $infos['Compressed-files'] = $ccount;