cvs: pear-core /PEAR/Frontend CLI.php
| From: | Pierre-Alain Joye | Date: | Thu, 02 Mar 2006 02:44:41 +0000 |
| Subject: | cvs: pear-core /PEAR/Frontend CLI.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-38831@lists.php.net to get a copy of this message | ||
pajoye Thu Mar 2 02:44:41 2006 UTC
Modified files:
/pear-core/PEAR/Frontend CLI.php
Log:
- make verbose mode less verbose (silent php notices)
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Frontend/CLI.php?r1=1.57&r2=1.58&diff_format=u
Index: pear-core/PEAR/Frontend/CLI.php
diff -u pear-core/PEAR/Frontend/CLI.php:1.57 pear-core/PEAR/Frontend/CLI.php:1.58
--- pear-core/PEAR/Frontend/CLI.php:1.57 Fri Jan 6 04:47:36 2006
+++ pear-core/PEAR/Frontend/CLI.php Thu Mar 2 02:44:41 2006
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: CLI.php,v 1.57 2006/01/06 04:47:36 cellog Exp $
+ * @version CVS: $Id: CLI.php,v 1.58 2006/03/02 02:44:41 pajoye Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -455,12 +455,17 @@
} else {
$w = strlen($col);
}
- if ($w > @$this->params['widest'][$i]) {
+
+ if (isset($this->params['widest'][$i])) {
+ if ($w > $this->params['widest'][$i]) {
+ $this->params['widest'][$i] = $w;
+ }
+ } else {
$this->params['widest'][$i] = $w;
}
$tmp = count_chars($columns[$i], 1);
// handle unix, mac and windows formats
- $lines = (isset($tmp[10]) ? $tmp[10] : @$tmp[13]) + 1;
+ $lines = (isset($tmp[10]) ? $tmp[10] : isset($tmp[13]) ? $tmp[13] : 0) + 1;
if ($lines > $highest) {
$highest = $lines;
}