ydnar wrote:
Thanks for your reply.

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

Thanks.


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

That's obvious.


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;

Does it make any difference if you do:


- exit 0;
+ ModPerl::Util::exit();
+ return Apache::OK;

may I ask, why do you call exit?

Also you didn't answer my 2 questions below.

[...]
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)

So which one do you have the problem with 5.8.0 or 5.8.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).

And?


__________________________________________________________________
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


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to