Skip Menu |
 

This queue is for tickets about the AMF-Connection CPAN distribution.

Report information
The Basics
Id: 71774
Status: new
Priority: 0/
Queue: AMF-Connection

People
Owner: Nobody in particular
Requestors: adam_lounds [...] hotmail.com
Cc:
AdminCc:

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



Download (untitled) / with headers
text/plain 638b
"Use of uninitialized value in pattern match" warning when deserialising an AMF message with headers, as deserialise creates a new MessageHeader object with no args but new() does a pattern match on $required. example fix: package AMF::Connection::MessageHeader; use strict; use Carp; sub new { my $proto = shift; my $class = ref($proto) || $proto; my $self = {}; if ( @_ ) { my ($name, $value, $required) = @_; $self->{'name'} = $name; $self->{'value'} = $value; $self->{'required'} = ($required=~m/(1|yes)/) ? 1 : 0; } return bless($self, $class); };


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.