Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 6841
Status: resolved
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: email_cpan [...] grassyhill.org
Cc:
AdminCc:

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



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)
Subject: t/query test 18 breaks with Perl 5.6.0
X-RT-Original-Encoding: iso-8859-1
Content-Length: 771
Download (untitled) / with headers
text/plain 771b
Under perl v5.6.0 built for i386-freebsd, URI 1.31 fails test 18 of t/query, preventing installation without force. The test in question says $u->query_form(a => { foo => 1 }); print "not " unless $u =~ /^\?a=HASH\(/; print "ok 18\n"; If you add the debug print line print STDERR "\$u='$u'\n"; you see that $u actually does stringize correctly, e.g. $u='?a=HASH(0x80fd854)' However, the naked application of the =~ match operator to the hash pointer $u appears to fail under 5.6.0. My workaround was to change the test to say $u->query_form(a => { foo => 1 }); my $v = ""."$u"; print "not " unless $v =~ /^\?a=HASH\(/; print "ok 18\n"; The forcible conversion to a string expression satisfies the test. -- Tom Neff


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.