cvs: pear-core /PEAR/Command Registry.php
| From: | Greg Beaver | Date: | Sun, 19 Nov 2006 23:50:09 +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-5199@lists.php.net to get a copy of this message | ||
cellog Sun Nov 19 23:50:09 2006 UTC
Modified files:
/pear-core/PEAR/Command Registry.php
Log:
further fixes - use staticPush/pop error handling, otherwise we won't catch
all of the PEAR_Error possibilities
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Command/Registry.php?r1=1.74&r2=1.75&diff_format=u
Index: pear-core/PEAR/Command/Registry.php
diff -u pear-core/PEAR/Command/Registry.php:1.74 pear-core/PEAR/Command/Registry.php:1.75
--- pear-core/PEAR/Command/Registry.php:1.74 Sun Nov 19 23:47:10 2006
+++ pear-core/PEAR/Command/Registry.php Sun Nov 19 23:50:09 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: Registry.php,v 1.74 2006/11/19 23:47:10 cellog Exp $
+ * @version CVS: $Id: Registry.php,v 1.75 2006/11/19 23:50:09 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -315,7 +315,7 @@
if (count($params) < 1) {
return PEAR::raiseError('ERROR, usage: pear shell-test packagename [[relation]
version]');
}
- $this->pushErrorHandling(PEAR_ERROR_RETURN);
+ PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN);
$reg = &$this->config->getRegistry();
$info = $reg->parsePackageName($params[0],
$this->config->get('default_channel'));
if (PEAR::isError($info)) {
@@ -348,7 +348,7 @@
exit(1);
}
} else {
- $this->popErrorHandling();
+ PEAR::staticPopErrorHandling();
$this->raiseError("$command: expects 1 to 3 parameters");
exit(1);
}