From: Marcus Boerger Date: Fri, 21 Mar 2008 23:07:44 +0000 (+0000) Subject: - Fix error message X-Git-Tag: RELEASE_2_0_0a1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bfa3909bf6ecfcbfe351a5ce5375bf71a2fca23;p=php - Fix error message --- 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;