cvs: pear-core /PEAR ChannelFile.php /PEAR/PackageFile v1.php
| From: | Greg Beaver | Date: | Mon, 25 Oct 2004 16:25:22 +0000 |
| Subject: | cvs: pear-core /PEAR ChannelFile.php /PEAR/PackageFile v1.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1143@lists.php.net to get a copy of this message | ||
cellog Mon Oct 25 12:25:22 2004 EDT
Modified files:
/pear-core/PEAR ChannelFile.php
/pear-core/PEAR/PackageFile v1.php
Log:
fix for new PEAR_ErrorStack
http://cvs.php.net/diff.php/pear-core/PEAR/ChannelFile.php?r1=1.25&r2=1.26&ty=u
Index: pear-core/PEAR/ChannelFile.php
diff -u pear-core/PEAR/ChannelFile.php:1.25 pear-core/PEAR/ChannelFile.php:1.26
--- pear-core/PEAR/ChannelFile.php:1.25 Thu Oct 21 18:23:19 2004
+++ pear-core/PEAR/ChannelFile.php Mon Oct 25 12:25:22 2004
@@ -16,7 +16,7 @@
// | Authors: Gregory Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ChannelFile.php,v 1.25 2004/10/21 22:23:19 cellog Exp $
+// $Id: ChannelFile.php,v 1.26 2004/10/25 16:25:22 cellog Exp $
require_once 'PEAR/Common.php';
@@ -223,22 +223,15 @@
var $_isValid = false;
// }}}
// {{{ constructor
-
- /**
- * @param bool determines whether to return a PEAR_Error object, or use the PEAR_ErrorStack
- * @param string Name of Error Stack class to use. This allows inheritance with stacks that
have the
- * same constructor as the parent PEAR_ErrorStack class
- */
- function PEAR_ChannelFile($compatibility = false, $stackclass = 'PEAR_ErrorStack')
+
+ function PEAR_ChannelFile()
{
if (!class_exists('PEAR_ErrorStack')) {
include_once 'PEAR/ErrorStack.php';
}
- $this->_stack = &PEAR_ErrorStack::singleton('PEAR_ChannelFile', false,
- false, $compatibility, 'Exception', $stackclass);
+ $this->_stack = &PEAR_ErrorStack::singleton('PEAR_ChannelFile');
$this->_stack->setErrorMessageTemplate($this->_getErrorMessage());
$this->_isValid = false;
- $this->_compatibility = $compatibility;
}
// }}}
http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v1.php?r1=1.22&r2=1.23&ty=u
Index: pear-core/PEAR/PackageFile/v1.php
diff -u pear-core/PEAR/PackageFile/v1.php:1.22 pear-core/PEAR/PackageFile/v1.php:1.23
--- pear-core/PEAR/PackageFile/v1.php:1.22 Thu Oct 21 19:22:22 2004
+++ pear-core/PEAR/PackageFile/v1.php Mon Oct 25 12:25:22 2004
@@ -290,16 +290,14 @@
* @param bool determines whether to return a PEAR_Error object, or use the PEAR_ErrorStack
* @param string Name of Error Stack class to use.
*/
- function PEAR_PackageFile_v1($compatibility = false, $stackclass = 'PEAR_ErrorStack')
+ function PEAR_PackageFile_v1()
{
if (!class_exists('PEAR_ErrorStack')) {
include_once 'PEAR/ErrorStack.php';
}
- $this->_stack = &new $stackclass('PEAR_PackageFile', false,
- false, $compatibility, 'Exception');
+ $this->_stack = &new PEAR_ErrorStack('PEAR_PackageFile');
$this->_stack->setErrorMessageTemplate($this->_getErrorMessage());
$this->_isValid = false;
- $this->_compatibility = $compatibility;
}
function installBinary($installer)