]> granicus.if.org Git - php/commitdiff
* fix one missing DIRECTORY_SEPARATOR and a typo
authorStig Bakken <ssb@php.net>
Mon, 16 Dec 2002 20:44:50 +0000 (20:44 +0000)
committerStig Bakken <ssb@php.net>
Mon, 16 Dec 2002 20:44:50 +0000 (20:44 +0000)
pear/PEAR/Remote.php

index d7b6e70e5260ef39c16f93b984afec486650990a..799929602f06e5a7666282bd8bd9755fd22f67e4 100644 (file)
@@ -58,7 +58,7 @@ class PEAR_Remote extends PEAR
         if (!file_exists($cachedir)) {
             System::mkdir('-p '.$cachedir);
         }
-        $filename = $cachedir.'/xmlrpc_cache_'.$id;
+        $filename = $cachedir . DIRECTORY_SEPARATOR . 'xmlrpc_cache_' . $id;
         if (!file_exists($filename)) {
             return null;
         };
@@ -313,16 +313,16 @@ class PEAR_Remote extends PEAR
                 $lastkey = key($php_val);
                 if ($firstkey === 0 && is_int($lastkey) &&
                     ($lastkey + 1) == count($php_val)) {
-                    $is_continous = true;
+                    $is_continuous = true;
                     reset($php_val);
                     $size = count($php_val);
                     for ($expect = 0; $expect < $size; $expect++, next($php_val)) {
                         if (key($php_val) !== $expect) {
-                            $is_continous = false;
+                            $is_continuous = false;
                             break;
                         }
                     }
-                    if ($is_continous) {
+                    if ($is_continuous) {
                         reset($php_val);
                         $arr = array();
                         while (list($k, $v) = each($php_val)) {
@@ -332,7 +332,7 @@ class PEAR_Remote extends PEAR
                         break;
                     }
                 }
-                // fall though if not numerical and continous
+                // fall though if not numerical and continuous
             case "object":
                 $arr = array();
                 while (list($k, $v) = each($php_val)) {