Edit report at https://bugs.php.net/bug.php?id=69444&edit=1
ID: 69444
Updated by: [email protected]
Reported by: cjbw1234 at 163 dot com
Summary: can not use pecl install
-Status: Wont fix
+Status: Closed
Type: Bug
Package: Website problem
Operating System: CentOS 5.x & 6.x, OS X 10.10.3
PHP Version: 5.4.39
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
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!
Previous Comments:
------------------------------------------------------------------------
[2015-04-14 13:53:40] [email protected]
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 12:01:39] [email protected]
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 11:01:50] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69444&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.