From: Stig Bakken Date: Sun, 7 Apr 2002 21:09:41 +0000 (+0000) Subject: * append "?uncompress=yes" to the package download url if zlib extension X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~807 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79a150068a52f984182fd3ec5348efc90dd4103a;p=php * append "?uncompress=yes" to the package download url if zlib extension is not loaded --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index b4a5cbe014..1ca2929431 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -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");