sync with PEAR 1.3.6

This commit is contained in:
Greg Beaver 2005-08-22 22:09:54 +00:00
parent de247c88cd
commit ae8a3a0f9e
4 changed files with 12 additions and 8 deletions

View file

@ -15,6 +15,7 @@
// +----------------------------------------------------------------------+ // +----------------------------------------------------------------------+
// | Authors: Stig Bakken <ssb@php.net> | // | Authors: Stig Bakken <ssb@php.net> |
// | Martin Jansen <mj@php.net> | // | Martin Jansen <mj@php.net> |
// | Greg Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+ // +----------------------------------------------------------------------+
// //
// $Id$ // $Id$

View file

@ -538,6 +538,10 @@ class PEAR_ErrorStack {
'message' => $msg, 'message' => $msg,
); );
if ($repackage) {
$err['repackage'] = $repackage;
}
// set up the error message, if necessary // set up the error message, if necessary
if ($this->_msgCallback) { if ($this->_msgCallback) {
$msg = call_user_func_array($this->_msgCallback, $msg = call_user_func_array($this->_msgCallback,
@ -545,9 +549,6 @@ class PEAR_ErrorStack {
$err['message'] = $msg; $err['message'] = $msg;
} }
if ($repackage) {
$err['repackage'] = $repackage;
}
$push = $log = true; $push = $log = true;
$die = false; $die = false;
// try the overriding callback first // try the overriding callback first
@ -909,8 +910,10 @@ class PEAR_ErrorStack {
} else { } else {
$mainmsg = $stack->getErrorMessageTemplate($err['code']); $mainmsg = $stack->getErrorMessageTemplate($err['code']);
} }
$mainmsg = str_replace('%__msg%', $err['message'], $mainmsg); $mainmsg = str_replace('%__msg%', $err['message'], $mainmsg);
if (count($err['params'])) {
if (count($err['params']) && count($err['params'])) {
foreach ($err['params'] as $name => $val) { foreach ($err['params'] as $name => $val) {
if (is_array($val)) { if (is_array($val)) {
// @ is needed in case $val is a multi-dimensional array // @ is needed in case $val is a multi-dimensional array

View file

@ -115,8 +115,8 @@ class PEAR_Remote extends PEAR
$this->saveCache($_args, $result); $this->saveCache($_args, $result);
}; };
return $result; return $result;
} else { } elseif (!@include_once("XML/RPC.php")) {
return $this->raiseError("For this remote PEAR operation you need to load the xmlrpc extension or install XML_RPC"); return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
} }
array_shift($args); array_shift($args);

View file

@ -49,7 +49,7 @@
</maintainers> </maintainers>
<release> <release>
<version>1.3.6</version> <version>1.3.6</version>
<date>2005-08-17</date> <date>2005-08-18</date>
<state>stable</state> <state>stable</state>
<license>PHP License</license> <license>PHP License</license>
<notes> <notes>