Skip Menu |

This queue is for tickets about the Net-SMPP CPAN distribution.

Report information
The Basics
Id: 55601
Status: open
Priority: 0/
Queue: Net-SMPP

People
Owner: Nobody in particular
Requestors: ledda [...] ukr.net
Cc:
AdminCc:

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



Subject: Net::SMPP::PDU methods return runtime error: Not a GLOB reference
Methods of Net::SMPP::PDU package incorrectly access object hash. E.g. code like ${*$me}{status} result the following error: Not a GLOB reference at /usr/lib/perl5/site_perl/5.8.8/Net/SMPP.pm It should be written: ${$me}{status} or $me->{status} Same issue with: ${$me}{message_id} ${$me}{seq} ${$me}{cmd} Because of this error, methods explain_cmd() and explain_status() don't work at all. According the code the same issue was fixed in "sub status" but other subs remain untouched.
On Mon Mar 15 12:43:22 2010, ledda wrote: Show quoted text
> Methods of Net::SMPP::PDU package incorrectly access object hash. > > E.g. code like > ${*$me}{status} result the following error: > Not a GLOB reference at /usr/lib/perl5/site_perl/5.8.8/Net/SMPP.pm > > It should be written: > ${$me}{status} > or > $me->{status} > > Same issue with: > ${$me}{message_id} > ${$me}{seq} > ${$me}{cmd} > > Because of this error, methods explain_cmd() and explain_status() > don't work at all. > > According the code the same issue was fixed in "sub status" > but other subs remain untouched.
This seems a duplicate of bug 18510; a patch is attached there which should fix it. https://rt.cpan.org/Ticket/Display.html?id=18510 -- Paul Evans