From 9bfa3909bf6ecfcbfe351a5ce5375bf71a2fca23 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 21 Mar 2008 23:07:44 +0000 Subject: [PATCH] - Fix error message --- ext/phar/phar/pharcommand.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/phar/phar/pharcommand.inc b/ext/phar/phar/pharcommand.inc index 68682ccdc7..1b6f26895a 100755 --- a/ext/phar/phar/pharcommand.inc +++ b/ext/phar/phar/pharcommand.inc @@ -236,7 +236,7 @@ class PharCommand extends CLICommand { $arg = self::cli_arg_typ_filenew($arg, $cfg, $key); if (!Phar::isValidPharFilename($arg)) { - self::error("Phar files must have file extension '.phar', '.phar.php', '.phar.bz2' or 'phar.gz'.\n"); + self::error("Phar files must have file extension '.phar', '.phar.php', '.phar.bz2' or '.phar.gz'.\n"); } return $arg; } @@ -1381,7 +1381,8 @@ class PharCommand extends CLICommand $ucount = 0; $mcount = 0; $compalg = array('GZ'=>0, 'BZ2'=>0); - +var_dump($phar); +try { foreach(new RecursiveIteratorIterator($phar) as $ent) { $count++; if ($ent->isCompressed()) { @@ -1403,7 +1404,7 @@ class PharCommand extends CLICommand $mcount++; } } - +} catch(Exception $e) {echo $e;} $infos['Entries'] = $count; $infos['Uncompressed-files'] = $ucount; $infos['Compressed-files'] = $ccount; -- 2.50.1