From: Stig Bakken Date: Tue, 21 May 2002 01:20:51 +0000 (+0000) Subject: * make infoFromAny actually work :) X-Git-Tag: RELEASE_0_10~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f208968c9f995fc50b160aef60cca00684c15ced;p=php * make infoFromAny actually work :) --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 7427ef96c6..c87f54e890 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -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 == "infoFromDescriptionFile($info); + $info = $this->infoFromDescriptionFile($info); } else { - $info = $obj->infoFromTgzFile($info); + $info = $this->infoFromTgzFile($info); } } if (PEAR::isError($info)) {