cvs: pear-core /PEAR/Command Registry.php
| From: | Greg Beaver | Date: | Thu, 18 Aug 2005 12:12:30 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Registry.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3637@lists.php.net to get a copy of this message | ||
cellog Thu Aug 18 08:12:30 2005 EDT
Modified files:
/pear-core/PEAR/Command Registry.php
Log:
fix Bug #5135: pear info PEAR has notice with a13 installed
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Registry.php?r1=1.64&r2=1.65&ty=u
Index: pear-core/PEAR/Command/Registry.php
diff -u pear-core/PEAR/Command/Registry.php:1.64 pear-core/PEAR/Command/Registry.php:1.65
--- pear-core/PEAR/Command/Registry.php:1.64 Thu Aug 18 07:57:50 2005
+++ pear-core/PEAR/Command/Registry.php Thu Aug 18 08:12:29 2005
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Registry.php,v 1.64 2005/08/18 11:57:50 cellog Exp $
+ * @version CVS: $Id: Registry.php,v 1.65 2005/08/18 12:12:29 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -637,8 +637,12 @@
}
}
$deps = $obj->getDependencies();
- $info['Required Dependencies'] = 'PHP version ' .
$deps['required']['php']['min'] .
- '-' . $deps['required']['php']['max'] .
"\n";
+ $info['Required Dependencies'] = 'PHP version ' .
$deps['required']['php']['min'];
+ if (isset($deps['required']['php']['max'])) {
+ $info['Required Dependencies'] .= '-' .
$deps['required']['php']['max'] . "\n";
+ } else {
+ $info['Required Dependencies'] .= "\n";
+ }
if (isset($deps['required']['php']['exclude'])) {
if (!isset($info['Not Compatible with'])) {
$info['Not Compatible with'] = '';