Skip Menu |
 

This queue is for tickets about the GD-Barcode CPAN distribution.

Report information
The Basics
Id: 29123
Status: open
Priority: 0/
Queue: GD-Barcode

People
Owner: Nobody in particular
Requestors: Anonymous (no email address)
Cc:
AdminCc:

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



Subject: QRcode dies
Date: Mon, 3 Sep 2007 02:49:40 +0200 (CEST)
To: bug-GD-Barcode [...] rt.cpan.org
From: Anonymous <cripto [...] ecn.org>
Download (untitled) / with headers
text/plain 198b
GD::Barcode::QRcode dies when there is an overflow error, but that is inconsistent with the error checking as documented in GD::Barcode, where it suggests: die $GD::Barcode::errStr unless($oGdBar);
From: petr [...] practisoft.cz
Download (untitled) / with headers
text/plain 626b
To remove this bug please open QRcode.pm file, search for first occurence of word "die" and replace it with word "return" :-) Original code: ---------------------------------- elsif ($iTotalBits > $iMaxDatBits){ die "Overflow error. version $oSelf->{Version}\n" . "total bits: $iTotalBits max bits: $iMaxDatBits\n"; } ---------------------------------- New code: ---------------------------------- elsif ($iTotalBits > $iMaxDatBits){ return "Overflow error. version $oSelf->{Version}\n" . "total bits: $iTotalBits max bits: $iMaxDatBits\n"; } ----------------------------------


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.