]> granicus.if.org Git - php/commitdiff
- Fix error message
authorMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 23:07:44 +0000 (23:07 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 23:07:44 +0000 (23:07 +0000)
ext/phar/phar/pharcommand.inc

index 68682ccdc76a3cc0f85172beffd072a48bde5075..1b6f26895a190e8bb9d616196ed92ffa561cbc45 100755 (executable)
@@ -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;