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