* append "?uncompress=yes" to the package download url if zlib extension

is not loaded
This commit is contained in:
Stig Bakken 2002-04-07 21:09:41 +00:00
parent 46dd841b28
commit 79a150068a

View File

@ -192,6 +192,9 @@ class PEAR_Installer extends PEAR_Common
$pkgfile = "http://" . $config->get('master_server') .
"/get/$pkgfile";
}
if (!extension_loaded("zlib")) {
$pkgfile .= '?uncompress=yes';
}
$need_download = true;
} else {
return $this->raiseError("could not open the package file: $pkgfile");