Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 33773
Status: resolved
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: slanning [...] cpan.org
Cc:
AdminCc:

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



Subject: redefined warnings
I get errors like this in version 0.71 with : Subroutine LWP::UserAgent::redirect_ok redefined at /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 41. Subroutine LWP::Protocol::collect redefined at /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 59. For what it's worth, I attached the patch I used to suppress these warnings. (Though whether it's such a good idea to redefine these subroutines, I'm not so sure...)
Subject: soaplite.diff
--- /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm~ 2008-02-19 00:10:30.000000000 +0100 +++ /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm 2008-03-03 11:50:11.000000000 +0100 @@ -37,9 +37,11 @@ return if $_patched; BEGIN { local ($^W) = 0; } { + no warnings 'redefine'; sub LWP::UserAgent::redirect_ok; *LWP::UserAgent::redirect_ok = sub {1} } { + no warnings 'redefine'; package LWP::Protocol; my $collect = \&collect; # store original *collect = sub {
Hi Scott, this one should be fixed in 0.71.01 and 0.71.02 (though using local $^W and not the more modern "no warnings". Compatibility has it's price ;-) Thanks for reporting, Martin