Subject: Bug #18340raiseErro typo
Origin: http://svn.php.net/viewvc?view=revision&revision=308983

Also includes http://svn.php.net/viewvc?view=revision&revision=309593

  Fixed Bug #18388: Parenteses error in REST.php line 232 [dufuz]

--- PEAR/REST.php.old	2011-03-18 16:33:00.000000000 -0300
+++ PEAR/REST.php	2011-03-22 18:46:25.000000000 -0300
@@ -102,7 +102,7 @@
                 // reset the age of the cache if the server says it was unmodified
                 $result = $this->saveCache($url, $ret, null, true, $cacheId);
                 if (PEAR::isError($result)) {
-                    return PEAR::raiseErro($result->getMessage());
+                    return PEAR::raiseError($result->getMessage());
                 }
             }
 
@@ -122,7 +122,7 @@
         if ($forcestring) {
             $result = $this->saveCache($url, $content, $lastmodified, false, $cacheId);
             if (PEAR::isError($result)) {
-                return PEAR::raiseErro($result->getMessage());
+                return PEAR::raiseError($result->getMessage());
             }
 
             return $content;
@@ -162,7 +162,7 @@
 
         $result = $this->saveCache($url, $content, $lastmodified, false, $cacheId);
         if (PEAR::isError($result)) {
-            return PEAR::raiseErro($result->getMessage());
+            return PEAR::raiseError($result->getMessage());
         }
 
         return $content;
@@ -229,7 +229,7 @@
         $cachefile   = $d . 'rest.cachefile';
 
         if (!is_dir($cache_dir)) {
-            if (System::mkdir(array('-p', $cache_dir) === false)) {
+            if (System::mkdir(array('-p', $cache_dir)) === false) {
               return PEAR::raiseError("The value of config option cache_dir ($cache_dir) is not a directory and attempts to create the directory failed.");
             }
         }
