cvs: pecl /phar/phar pharcommand.inc
| From: | Marcus Boerger | Date: | Fri, 21 Mar 2008 23:07:43 +0000 |
| Subject: | cvs: pecl /phar/phar pharcommand.inc | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-9999@lists.php.net to get a copy of this message | ||
helly Fri Mar 21 23:07:43 2008 UTC
Modified files:
/pecl/phar/phar pharcommand.inc
Log:
- Fix error message
http://cvs.php.net/viewvc.cgi/pecl/phar/phar/pharcommand.inc?r1=1.45&r2=1.46&diff_format=u
Index: pecl/phar/phar/pharcommand.inc
diff -u pecl/phar/phar/pharcommand.inc:1.45 pecl/phar/phar/pharcommand.inc:1.46
--- pecl/phar/phar/pharcommand.inc:1.45 Mon Feb 25 15:44:20 2008
+++ pecl/phar/phar/pharcommand.inc Fri Mar 21 23:07:43 2008
@@ -236,7 +236,7 @@
{
$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 @@
$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 @@
$mcount++;
}
}
-
+} catch(Exception $e) {echo $e;}
$infos['Entries'] = $count;
$infos['Uncompressed-files'] = $ucount;
$infos['Compressed-files'] = $ccount;