]> granicus.if.org Git - php/commitdiff
sync with PEAR 1.3.6
authorGreg Beaver <cellog@php.net>
Mon, 22 Aug 2005 22:17:30 +0000 (22:17 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 22 Aug 2005 22:17:30 +0000 (22:17 +0000)
pear/PEAR/ErrorStack.php
pear/PEAR/Remote.php
pear/go-pear-list.php
pear/package-PEAR.xml

index d1dcf9233eb74e77d553da6e61beb2efe645ad88..9ad94d738cb49015d57937fbf5ba0c5174b42af6 100644 (file)
@@ -538,6 +538,10 @@ class PEAR_ErrorStack {
                 'message' => $msg,
                );
 
+        if ($repackage) {
+            $err['repackage'] = $repackage;
+        }
+
         // set up the error message, if necessary
         if ($this->_msgCallback) {
             $msg = call_user_func_array($this->_msgCallback,
@@ -545,9 +549,6 @@ class PEAR_ErrorStack {
             $err['message'] = $msg;
         }        
         
-        if ($repackage) {
-            $err['repackage'] = $repackage;
-        }
         $push = $log = true;
         $die = false;
         // try the overriding callback first
@@ -909,8 +910,10 @@ class PEAR_ErrorStack {
         } 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
@@ -978,4 +981,4 @@ class PEAR_ErrorStack {
 }
 $stack = &PEAR_ErrorStack::singleton('PEAR_ErrorStack');
 $stack->pushCallback(array('PEAR_ErrorStack', '_handleError'));
-?>
\ No newline at end of file
+?>
index c75b11b5c19063c38898ff83101b2997762520a5..555ec63b6c92407b49fd9e7cf45da952d3de40dd 100644 (file)
@@ -115,10 +115,10 @@ class PEAR_Remote extends PEAR
                 $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');
index 49635f1097ce2d96dcc1ed15b59422113d771bce..3085306cceaef28b7821529f40eb7587058ad656 100755 (executable)
@@ -7,7 +7,7 @@
  */
 $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",
index 190f6800973a94d9aa687894e674d300acf97c8b..9a134fdd4c52369bd0a99ad125c1a8e1a7d41a7b 100644 (file)
@@ -49,7 +49,7 @@
   </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>
@@ -196,15 +208,5 @@ Other:
  * 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>