'message' => $msg,
);
+ if ($repackage) {
+ $err['repackage'] = $repackage;
+ }
+
// set up the error message, if necessary
if ($this->_msgCallback) {
$msg = call_user_func_array($this->_msgCallback,
$err['message'] = $msg;
}
- if ($repackage) {
- $err['repackage'] = $repackage;
- }
$push = $log = true;
$die = false;
// try the overriding callback first
} else {
$mainmsg = $stack->getErrorMessageTemplate($err['code']);
}
+
$mainmsg = str_replace('%__msg%', $err['message'], $mainmsg);
- if (count($err['params'])) {
+
+ if (count($err['params']) && count($err['params'])) {
foreach ($err['params'] as $name => $val) {
if (is_array($val)) {
// @ is needed in case $val is a multi-dimensional array
}
$stack = &PEAR_ErrorStack::singleton('PEAR_ErrorStack');
$stack->pushCallback(array('PEAR_ErrorStack', '_handleError'));
-?>
\ No newline at end of file
+?>
$this->saveCache($_args, $result);
};
return $result;
- }
- if (!@include_once("XML/RPC.php")) {
+ } elseif (!@include_once("XML/RPC.php")) {
return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
}
+
array_shift($args);
$server_host = $this->config->get('master_server');
$username = $this->config->get('username');
*/
$packages = array(
// required packages for the installer
-"PEAR" => "1.3.5",
+"PEAR" => "1.3.6",
"XML_RPC" => "1.4.0",
"Console_Getopt" => "1.2",
"Archive_Tar" => "1.3.1",
</maintainers>
<release>
<version>1.3.6</version>
- <date>2005-08-17</date>
+ <date>2005-08-18</date>
<state>stable</state>
<license>PHP License</license>
<notes>
<dep type="pkg" rel="ge" version="1.4.0">XML_RPC</dep>
<dep type="ext" rel="has">xml</dep>
<dep type="ext" rel="has">pcre</dep>
+ <dep type="ext" rel="has" optional="yes">xmlrpc</dep>
</deps>
</release>
<changelog>
+ <release>
+ <version>1.3.5</version>
+ <date>2005-02-18</date>
+ <state>stable</state>
+ <license>PHP License</license>
+ <notes>
+ * fix Bug #3505: pecl can't install PDO
+ * enhance pear run-tests dramatically
+ * fix Bug #3506: pear install should export the pear version into the environment
+ </notes>
+ </release>
<release>
<version>1.3.1</version>
<date>2004-04-06</date>
* make pear help listing more useful (put how-to-use info at the bottom of the listing)
</notes>
</release>
- <release>
- <version>1.3.5</version>
- <date>2005-02-18</date>
- <state>stable</state>
- <notes>
- * fix Bug #3505: pecl can't install PDO
- * enhance pear run-tests dramatically
- * fix Bug #3506: pear install should export the pear version into the environment
- </notes>
- </release>
</changelog>
</package>