Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: whisperlite [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 2.008
Fixed in: 2.009



Subject: The doc for Compress::Zlib describes flush's arguments incorrectly
In the synopsis, flush is called as it is called in Compress::Raw::Zlib, with $status = $d->flush($output [, $flush_type]) ; Later, when describing the deflate interface, it's called with ($out, $status) = $d->flush([flush_type]) But from what I can tell, flush only wants a scalar. It should be called with ($out, $status) = $d->flush($flush_type)
On Wed Dec 12 20:35:57 2007, whisperlite wrote: Show quoted text
> In the synopsis, flush is called as it is called in
Compress::Raw::Zlib, Show quoted text
> with > $status = $d->flush($output [, $flush_type]) ; > > Later, when describing the deflate interface, it's called with > ($out, $status) = $d->flush([flush_type]) > > But from what I can tell, flush only wants a scalar. It should be > called with > ($out, $status) = $d->flush($flush_type)
Hi, thanks for the report & sorry for the delay in responding. Regarding the documentation issue, the correct signature for flush is indeed ($out, $status) = $d->flush($flush_type) I've updated my development copy, so this will be included in the next release of the modules. cheers Paul