]> granicus.if.org Git - php/commitdiff
* make infoFromAny actually work :)
authorStig Bakken <ssb@php.net>
Tue, 21 May 2002 01:20:51 +0000 (01:20 +0000)
committerStig Bakken <ssb@php.net>
Tue, 21 May 2002 01:20:51 +0000 (01:20 +0000)
pear/PEAR/Common.php

index 7427ef96c60ea5fa9d1b37ce6276993e66b928a9..c87f54e8905e2db5c5fa96b5f0901b4949412856 100644 (file)
@@ -128,7 +128,7 @@ class PEAR_Common extends PEAR
      */
     function PEAR_Common()
     {
-        $this->PEAR();
+        parent::PEAR();
         $this->config = &PEAR_Config::singleton();
     }
 
@@ -899,13 +899,13 @@ class PEAR_Common extends PEAR
             } elseif ($tmp == '.tar' || $tmp == '.tgz') {
                 $info = $this->infoFromTgzFile($info);
             } else {
-                $fp = fopen($params[0], "r");
+                $fp = fopen($info, "r");
                 $test = fread($fp, 5);
                 fclose($fp);
                 if ($test == "<?xml") {
-                    $info = $obj->infoFromDescriptionFile($info);
+                    $info = $this->infoFromDescriptionFile($info);
                 } else {
-                    $info = $obj->infoFromTgzFile($info);
+                    $info = $this->infoFromTgzFile($info);
                 }
             }
             if (PEAR::isError($info)) {