Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 17764
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: LDS [...] cpan.org
Requestors: selsky [...] columbia.edu
Cc:
AdminCc:

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



Subject: Use of uninitialized value in string ne in "make test"
make test is successful, but two tests emit "Use of uninitialized value in string ne at(eval xx) line 31." $ make test PERL_DL_NONLAZY=1 /opt/local/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/apache................ok t/can...................ok t/carp..................ok t/cookie................ok t/fast..................ok t/form..................ok t/function..............ok t/html..................ok 1/28Use of uninitialized value in string ne at (eval 4) line 31. Use of uninitialized value in string ne at (eval 4) line 31. t/html..................ok t/no_tabindex...........ok t/pretty................ok t/push..................ok 1/12Use of uninitialized value in string ne at (eval 12) line 31. Use of uninitialized value in string ne at (eval 12) line 31. Use of uninitialized value in string ne at (eval 12) line 31. t/push..................ok 1/12 skipped: do_sleep() test may take a while t/request...............ok t/start_end_asterisk....ok t/start_end_end.........ok t/start_end_start.......ok t/switch................ok t/util-58...............ok t/util..................ok All tests successful, 1 subtest skipped. Files=18, Tests=502, 9 wallclock secs ( 6.68 cusr + 1.50 csys = 8.18 CPU) perl 5.8.7 on Solaris 9.
From: markus.schuh [...] sdm.de
On Mo. 20. Feb. 2006, 15:24:10, guest wrote: Show quoted text
> make test is successful, but two tests emit "Use of uninitialized value
... Show quoted text
> t/html..................ok 1/28Use of uninitialized value in string ne > at (eval 4) line 31. > Use of uninitialized value in string ne at (eval 4) line 31.
This one comes from an uninitialized "$charset" in line 1438 of CGI.pm 3.17 make TEST_FILE=t/html.t testdb ... (Single stepping into Test 10) CGI::header((eval 10)[blib/lib/CGI.pm:820]:31): 31: $type .= "; charset=$charset" if $type ne '' and $type !~ /\bcharset\b/ and $charset ne ''; DB<1> Use of uninitialized value in string ne at (eval 10)[blib/lib/CGI.pm:820] line 31. at (eval 10)[blib/lib/CGI.pm:820] line 31 CGI::header('-type', 'image/gif') called at t/html.t line 53 proposed fix: if (defined $charset) { $type .= "; charset=$charset" if $type ne '' and $type !~ /\bcharset\b/ and $charset ne ''; }