Patch worked. Much thanks.
y
----- Original Message -----
From: "Stas Bekman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "ydnar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 1:48 AM
Subject: Re: [mp2] useless warning on ModPerl::Util::exit()
> Stas Bekman wrote:
> > Stas Bekman wrote:
> >
> >>> It does not occur when running the t/TEST script. I was not able to
> >>> modify
> >>> t/response/TestModperl/exit.pm to reproduce either. Hence the example
> >>> handler as you requested.
> >>
> >>
> >>
> >> Perfect, I'm now able to reproduce your problem. Please stay tuned for
> >> the fix.
> >
> >
> > I haven't figured out why the test doesn't have the same problem, but
> > please try the following patch:
>
> scratch that, here is a really working patch. I rushed to post the
solution
> before doing proper testing.
>
> Index: src/modules/perl/modperl_callback.c
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_callback.c,v
> retrieving revision 1.59
> diff -u -r1.59 modperl_callback.c
> --- src/modules/perl/modperl_callback.c 23 Sep 2003 20:12:11 -0000 1.59
> +++ src/modules/perl/modperl_callback.c 2 Oct 2003 08:46:53 -0000
> @@ -74,7 +74,14 @@
> status = OK;
> }
> else {
> - status = POPi;
> + SV* status_sv = POPs;
> + if (SvIOK(status_sv)) {
> + status = (IV)SvIVx(status_sv);
> + }
> + else {
> + /* ModPerl::Util::exit doesn't return an integer value */
> + status = OK;
> + }
> /* assume OK for non-http status codes and for 200 (HTTP_OK)
*/
> if (((status > 0) && (status < 100)) ||
> (status == 200) || (status > 600)) {
>
> __________________________________________________________________
> 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]