Skip Menu |

This queue is for tickets about the Compress-Zlib CPAN distribution.

Report information
The Basics
Id: 24041
Status: resolved
Priority: 0/
Queue: Compress-Zlib

People
Owner: Nobody in particular
Requestors: admin [...] mysqldumper.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.002



Subject: Bug with parameter "a" in Version 2.001
Date: Fri, 22 Dec 2006 01:08:12 +0100
To: <bug-Compress-Zlib [...] rt.cpan.org>
From: <admin [...] mysqldumper.de>
Hi Developers, compress::zlib version 2.001 has a problem using the append paramter "a". Maybe you don't know so I better mail it to you. After executing this: #!/usr/bin/perl -w use Compress::Zlib; $gz = gzopen("test.txt.gz", "ab"); $gz->gzwrite("First line of test"); $gz->gzclose; $gz = gzopen("test.txt.gz", "ab"); $gz->gzwrite("Second line"); $gz->gzclose; the file only contains the second line. This means that the file is being deleted and re-created instead of appending the data to the existing file. We are using this in our perlscript of MySQLDumper and at http://www.mysqldumper.de/board we have many users who are reporting this behaviour. In older verions of zlib this is working perfectly. (In PHP Version 4.3.0 to 4.3.2 this bug also existed and was fixed from on version 4.3.3 - is there any relation?). A fix would be nice. ;) Happy coding and go on with your work. Greetings from Germany, Daniel Schlichtholz http://www.mysqldumper.de
On Thu Dec 21 19:05:02 2006, admin@mysqldumper.de wrote: Show quoted text
> Hi Developers,
Hi Daniel Show quoted text
> compress::zlib version 2.001 has a problem using the append paramter > "a". > Maybe you don't know so I better mail it to you.
Thanks for telling me -- I didn't know about it at all. Show quoted text
> After executing this: > > #!/usr/bin/perl -w > > use Compress::Zlib; > > $gz = gzopen("test.txt.gz", "ab"); > $gz->gzwrite("First line of test"); > $gz->gzclose; > > $gz = gzopen("test.txt.gz", "ab"); > $gz->gzwrite("Second line"); > $gz->gzclose; > > the file only contains the second line.
Brilliant - a script that illustrates the bug! Show quoted text
> This means that the file is being deleted and re-created instead of > appending the data to the existing file. > We are using this in our perlscript of MySQLDumper and at > http://www.mysqldumper.de/board we have many users > who are reporting this behaviour. > In older verions of zlib this is working perfectly. > (In PHP Version 4.3.0 to 4.3.2 this bug also existed and was fixed > from on version 4.3.3 - is there any relation?).
No, the Perl bug won't be related to PHP. Show quoted text
> A fix would be nice. ;)
A fix will be forthcoming over the next few days. cheers Paul
Version 2.002 of of this module has just been uploaded to CPAN with a fix for this ticket included. I'll close this issue for now. If you find any problem with it, either contact me directly or raise a new ticket. Paul
Subject: Re: [rt.cpan.org #24041] Resolved: Bug with parameter "a" in Version 2.001
Date: Fri, 29 Dec 2006 23:08:15 +0100
To: <bug-Compress-Zlib [...] rt.cpan.org>
From: <admin [...] mysqldumper.de>
Thanks a lot for keeping your hands on this. ;) Best regards, Daniel Show quoted text
----- Original Message ----- From: Paul Marquess via RT To: admin@mysqldumper.de Sent: Friday, December 29, 2006 10:56 PM Subject: [rt.cpan.org #24041] Resolved: Bug with parameter "a" in Version 2.001 <URL: http://rt.cpan.org/Ticket/Display.html?id=24041 > According to our records, your request has been resolved. If you have any further questions or concerns, please respond to this message.