mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08:00
* append "?uncompress=yes" to the package download url if zlib extension
is not loaded
This commit is contained in:
parent
46dd841b28
commit
79a150068a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user