svn: /pear/pear-core/tags/PEAR-1.9.3/ PEAR/REST/10.php package.xml package2.xml

[email protected] (Helgi Þormar Þorbjörnsson) Wed, 01 Jun 2011 04:57:34 +0000
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
--fd9c5f2426a860807e3964b59445bd50c3be7c1c
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

dufuz                                    Wed, 01 Jun 2011 04:57:34 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=311689

Log:
Fixed Bug #18486: REST/10.php does not check error condition [dufuz]

Bug: http://pear.php.net/bugs/18486 (unknown) 
      
Changed paths:
    U   pear/pear-core/tags/PEAR-1.9.3/PEAR/REST/10.php
    U   pear/pear-core/tags/PEAR-1.9.3/package.xml
    U   pear/pear-core/tags/PEAR-1.9.3/package2.xml

Modified: pear/pear-core/tags/PEAR-1.9.3/PEAR/REST/10.php
===================================================================
--- pear/pear-core/tags/PEAR-1.9.3/PEAR/REST/10.php	2011-06-01 03:11:09 UTC (rev 311688)
+++ pear/pear-core/tags/PEAR-1.9.3/PEAR/REST/10.php	2011-06-01 04:57:34 UTC (rev 311689)
@@ -292,6 +292,10 @@

         $allinfo = $this->_rest->retrieveData($base . 'r/' . $packageLower .
             '/allreleases.xml', false, false, $channel);
+        if (PEAR::isError($allinfo)) {
+            return $allinfo;
+        }
+
         if (!is_array($allinfo['r']) || !isset($allinfo['r'][0])) {
             $allinfo['r'] = array($allinfo['r']);
         }

Modified: pear/pear-core/tags/PEAR-1.9.3/package.xml
===================================================================
--- pear/pear-core/tags/PEAR-1.9.3/package.xml	2011-06-01 03:11:09 UTC (rev 311688)
+++ pear/pear-core/tags/PEAR-1.9.3/package.xml	2011-06-01 04:57:34 UTC (rev 311689)
@@ -97,6 +97,7 @@
   * Fixed Bug #18364: date.timezone errors for sh/bat files when TZ is not set in php.ini [dufuz]
   * Fixed Bug #18388: Parenteses error in REST.php line 232 [dufuz]
   * Fixed Bug #18428: invalid preg_match patterns [glen]
+  * Fixed Bug #18486: REST/10.php does not check error condition [dufuz]
   * Fixed a problem in RunTest and code coverage. Correctly register the
     code coverage shutdown function in case we are inside a namespace. [sebastian]
   * Fixed a bug with extensions not providing their config.m4 and co in the root directory

Modified: pear/pear-core/tags/PEAR-1.9.3/package2.xml
===================================================================
--- pear/pear-core/tags/PEAR-1.9.3/package2.xml	2011-06-01 03:11:09 UTC (rev 311688)
+++ pear/pear-core/tags/PEAR-1.9.3/package2.xml	2011-06-01 04:57:34 UTC (rev 311689)
@@ -99,6 +99,7 @@
   * Fixed Bug #18364: date.timezone errors for sh/bat files when TZ is not set in php.ini [dufuz]
   * Fixed Bug #18388: Parenteses error in REST.php line 232 [dufuz]
   * Fixed Bug #18428: invalid preg_match patterns [glen]
+  * Fixed Bug #18486: REST/10.php does not check error condition [dufuz]
   * Fixed a problem in RunTest and code coverage. Correctly register the
     code coverage shutdown function in case we are inside a namespace. [sebastian]
   * Fixed a bug with extensions not providing their config.m4 and co in the root directory of

--fd9c5f2426a860807e3964b59445bd50c3be7c1c--