1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
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.");
}
}
|