#19906 [Ctl]: "pear package" produces broken .tgz archive
| From: | wez@php.net | Date: | Mon, 14 Oct 2002 21:19:29 +0000 |
| Subject: | #19906 [Ctl]: "pear package" produces broken .tgz archive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22396@lists.php.net to get a copy of this message | ||
ID: 19906
Updated by: wez@php.net
Reported By: sebastian@php.net
Status: Critical
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 4.3.0-pre1
Assigned To: wez
New Comment:
Also, Archive_Tar no longer needs to do this:
if ($this->compress)
gzputs($this->file, $data);
else
fputs($this->file, $data);
A simple fputs($this->file, $data) will do the job.
And what's with all the @'s??
Does it really need them? It makes finding errors
almost impossible :-/
Previous Comments:
------------------------------------------------------------------------
[2002-10-14 16:17:52] wez@php.net
It's a problem with zlib streams.
Workaround for the moment:
pear package -Z
gzip packagename.tar
------------------------------------------------------------------------
[2002-10-14 12:42:16] sebastian@php.net
Verified by Wez. Assigned to Wez, since it's most likely
streams related.
------------------------------------------------------------------------
[2002-10-14 12:41:19] sebastian@php.net
"pear package" in the XML_Transformer directory creates a
broken tgz archive.
The archive seems to have right filesize, but when I try to
"tar xvfz" it, I only get a "package.xml" file from it.
Could this be related to current streams issues?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19906&edit=1