|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56172 go-pear fails
Submitted: 2004-08-18 06:39 UTC Modified: 2004-10-15 11:29 UTC
From: Assigned: cellog (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2004-08-18 06:39 UTC]
php -r 'include "";' fails at "Extracting Installer..." with message: "Unsopported compression type: ''"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-18 06:43 UTC]
I forgot to mention the most important part:

if zlib is not available!
 [2004-09-10 12:45 UTC] zae26305 at oak dot zero dot ad dot jp
I met the same failure.

php 4.3.2  without zlib support
$Id: go-pear,v 1.67 2004/09/09 06:25:17 cellog Exp $

I got these messages.
(left out)
The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser, PHPUnit.
Would you like to install these as well? [Y/n] : n

Loading zlib: failed
Downloading uncompressed packages
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: XML_RPC-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Extracting installer..................Unsupported compression type ''
Supported types are 'gz' and 'bz2'.

How about this patch?
At least, it worked for me.
--- index.html.original Thu Sep  9 22:17:12 2004
+++ index.html  Sat Sep 11 01:10:29 2004
@@ -649,7 +649,7 @@
 $ext = substr($tarball['PEAR'], $dot+1);
 include_once 'Archive/Tar.php';
-$tar = &new Archive_Tar($tarball['PEAR'], $have_gzip);
+$tar = &new Archive_Tar($tarball['PEAR'], ($have_gzip === FALSE) ? NULL : $have_gzip);
 if (!$tar->extractModify($ptmp, $pkg)) {
 [2004-10-15 10:12 UTC] wlidblad at yahoo dot com
You are a star.. this worked for me as well.. the pear is ripe now ;)
 [2004-10-15 11:29 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.

Archive_Tar was expecting null, not false, if compression
was not explicit.

Great catch zae26305, I implemented it more simply by assigning null to $have_gzip, since null evaluates to false and does not raise any notices.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Aug 12 09:05:46 2022 UTC