php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69444 can not use pecl install
Submitted: 2015-04-14 11:01 UTC Modified: 2015-04-14 14:29 UTC
From: cjbw1234 at 163 dot com Assigned: pajoye (profile)
Status: Closed Package: Website problem
PHP Version: 5.4.39 OS: CentOS 5.x & 6.x, OS X 10.10.3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cjbw1234 at 163 dot com
New email:
PHP Version: OS:

 

 [2015-04-14 11:01 UTC] cjbw1234 at 163 dot com
Description:
------------
*) deploy a linode with CentOS 6.5
*) download php-5.4.39
*) configure php with --with-openssl support
*) make && make install
*) pecl install mongo

after these steps, you will find pecl can't insall any package.

Test script:
---------------
Here is the pecl output:

[root@li718-127 ~]# pecl install mongo
downloading mongo-1.6.6.tar ...
Starting to download mongo-1.6.6.tar (207,564 bytes)
............................................done: 207,564 bytes
could not extract the package.xml file from "/tmp/pear/download/mongo-1.6.6.tar"
Download of "pecl/mongo" succeeded, but it is not a valid package archive
Error: cannot download "pecl/mongo"
Download failed
install failed



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-14 12:01 UTC] derick@php.net
-Package: PECL bug system +Package: Website problem -Assigned To: +Assigned To: pajoye
 [2015-04-14 12:01 UTC] derick@php.net
For some reason, the .tar file, is *also* compressed with gzip:

derick@whisky:/tmp $ wget -q https://pecl.php.net/get/mongo-1.6.6.tar

derick@whisky:/tmp $ file mongo-1.6.6.tar
mongo-1.6.6.tar: gzip compressed data, max compression, from Unix

derick@whisky:/tmp $ wget -q https://pecl.php.net/get/mongo-1.6.6.tgz

derick@whisky:/tmp $ file mongo-1.6.6.tgz
mongo-1.6.6.tgz: gzip compressed data, max compression, from Unix

The ".tar" variant should of course not be gzip'ed...

As a workaround, adding the "gzip" extension to PHP, should solve this.
 [2015-04-14 13:53 UTC] pajoye@php.net
-Status: Assigned +Status: Wont fix
 [2015-04-14 13:53 UTC] pajoye@php.net
Yes, that's actually the bug as non compressed tar (aka .tar) are not supported anymore. Not sure why it the code still get it as tar. I will check asap while gzip should be enabled.
 [2015-04-14 14:29 UTC] pajoye@php.net
-Status: Wont fix +Status: Closed
 [2015-04-14 14:29 UTC] pajoye@php.net
Fixed by adding an actual error if uncompressed package is requested.

This method is not supported, we do not store the uncompressed packages and the expand of the archive was done manually. We also use X-Sendfile now which boosts the downloads response.

Also it was done carefully after checking the amount of ppl actually requesting uncompressed packages in the last 3 months, below 0.0.1%.

Sorry for the inconvenience, simply enable gzip and you should be fine.

I added a correct error message so the very few using still relying on this will get an informative error.

Thanks for your report!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 17 02:00:03 2025 UTC