]> granicus.if.org Git - php/commitdiff
* append "?uncompress=yes" to the package download url if zlib extension
authorStig Bakken <ssb@php.net>
Sun, 7 Apr 2002 21:09:41 +0000 (21:09 +0000)
committerStig Bakken <ssb@php.net>
Sun, 7 Apr 2002 21:09:41 +0000 (21:09 +0000)
  is not loaded

pear/PEAR/Installer.php

index b4a5cbe01442f0a3f4592b14ba0c22b248b922ba..1ca292943184a4d056dd0795f67edf86f87d9ded 100644 (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");