Thanks for your reply.

Here's a short module that will throw the warning.

Note, my httpd.conf uses PerlSwitches -wT. Removing -w and using "use
warnings FATAL => 'all';" does *not* reproduce the problem.


package SHN::Exit;
use strict;
use ModPerl::Util;
use Apache::RequestRec;
use Apache::RequestIO;
sub handler
{
 my $r = shift;
 $r->content_type( "text/plain" );
 print "End of line.\n";
 exit 0;
}
1;




----- Original Message -----
From: "Stas Bekman" <
[EMAIL PROTECTED]>
To: "ydnar" <
[EMAIL PROTECTED]>
Cc: <
[EMAIL PROTECTED]>
Sent: Wednesday, October 01, 2003 3:05 PM
Subject: Re: [mp2] useless warning on ModPerl::Util::exit()


> ydnar wrote:
>
> > Useless warning in error_log:
> >
> >   [Mon Sep 29 16:43:15 2003] -e: Use of uninitialized value.
> >
> > This occurs whenever a handler script calls ModPerl::Util::exit()
> > or simply exit(). There is no other available information.
> >
> > Running Perl 5.8.0 and mod_perl 1.99.10, both fresh rebuilds from
> > source today.
>
> According to your report you are running 5.8.1:
>
>  > *** /usr/bin/perl -V
>  > Summary of my perl5 (revision 5.0 version 8 subversion 1)
configuration:
>
> I tested it with 5.8.0 and 5.8.1, but I can't get to reproduce it.
>
> Do you get this problem if you run this test:
>
> cd modperl-1.99-dev
> t/TEST -v modperl/exit
>
> run:
>
> tail -F t/logs/error_log
>
> in another console and see if you get this warnings. If not, please post a
> very short handler which we can reproduce the problem with (ideally adjust
> t/response/TestModperl/exit.pm to reproduce it).
>
> > This is the *only* warning in a fairly large mod_perl application,
> > and the only unfixable problem I've had porting it.
> >
> > Otherwise, thumbs up. mod_perl 2.0 rocks. :)
>
> Thanks for the kind words ;)
>
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
>
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>

Reply via email to