Re: Console_Getopt-1.2.3.tgz". Invalid tgz file.

From: Date: Tue, 17 Jul 2007 12:20:01 +0000
Subject: Re: Console_Getopt-1.2.3.tgz". Invalid tgz file.
References: 1 2 3  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4448@lists.php.net to get a copy of this message
Sebastian Mendel schrieb: > Christian Weiske schrieb: >> On Mon, Jul 16, 2007 at 06:11:57PM +0200, Sebastian Mendel wrote: >>> is this a local error, or can anyone else confirm? >>> Error: cannot download "pear/Console_Getopt" >> Works for me > > still not for me ... cleared all cached files > > my PEAR is 1.5.4, all other packages are up to date, the update process > worked fine for them > > # pear -vvvv upgrade -f console_getopt > > Downloading > "http://pear.php.net/get/Console_Getopt-1.2.3.tgz" > downloading Console_Getopt-1.2.3.tgz ... > Starting to download Console_Getopt-1.2.3.tgz (4,011 bytes) > ....done: 4,011 bytes > Could not get contents of package > "/var/tmp/pear/cache/Console_Getopt-1.2.3.tgz". Invalid tgz file. > Download of "pear/console_getopt" succeeded, but it is not a valid package > archive > Error: cannot download "pear/Console_Getopt" > Download failed > upgrade failed i tried the above on two system Red Hat 7.3 and Fedora dev Fedora - PHP 5.2.3 - PEAR latest devel Red Hat 7.3 - PHP 5.2.2 - PEAR latest stable on Red Hat i installed Console_Getopt and PEAR from file with # pear install Console_Getopt-1.2.3.tgz and the same for PEAR which worked fine cause since yesterdays last run of pear upgrade-all on which first packages installed fine but stopped on Console_Getopt, since them no packages could be installed successfully - with the above error the same for apc.enabled = Off/On i now find a fix, but i do not know if this is an error in PHP 5.2.2 i changed the following, after which all worked fine again, in Archive/Tar.php: function listContent() { $v_list_detail = array(); if ($this->_openRead()) { - if (!$this->_extractList('', $v_list_detail, "list", '', '')) { + $r = $this->_extractList('', $v_list_detail, "list", '', ''); + if (!$r) { unset($v_list_detail); $v_list_detail = 0; } $this->_close(); } return $v_list_detail; } -- Sebastian Mendel www.sebastianmendel.de

« previous php.pear.qa (#4448) next »