File: php5-pear-CVE-2011-1144-regression.patch

package info (click to toggle)
php5 5.3.3.1-7%2Bsqueeze29
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 123,520 kB
  • ctags: 55,742
  • sloc: ansic: 633,963; php: 19,620; sh: 11,344; xml: 5,816; cpp: 2,400; yacc: 1,745; exp: 1,514; makefile: 1,019; pascal: 623; awk: 537; sql: 22
file content (45 lines) | stat: -rw-r--r-- 1,841 bytes parent folder | download | duplicates (3)
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.");
             }
         }