You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2001/12/10 10:07:50 UTC
2 problems with mod_perl 2.0 and perl 5.6.1
I've tested mod_perl 2.0 under 5.6.1 and here are the two noticed
problems:
[Mon Dec 10 16:33:59 2001] [error] [client 127.0.0.1] Undefined
subroutine &ModPerl::Util::exit called at
/home/stas/apache.org/mp-perlio/Apache-Test/lib/Apache/Test.pm line 132.
This patch seems to fix it (tested with 5.6.1 and bleadperl):
Index: Apache-Test/lib/Apache/Test.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/Test.pm,v
retrieving revision 1.39
diff -u -r1.39 Test.pm
--- Apache-Test/lib/Apache/Test.pm 2001/12/07 19:27:07 1.39
+++ Apache-Test/lib/Apache/Test.pm 2001/12/10 08:19:39
@@ -129,7 +129,7 @@
my $reason = join ', ',
@SkipReasons ? @SkipReasons : "no reason given";
print "1..0 # skipped: $reason\n";
- exit; #XXX: Apache->exit
+ Apache->exit;
}
}
@SkipReasons = (); # reset
--------------
Any of these combinations:
t/TEST modperl/sameinterp modules/cgi
t/TEST hooks/access modules/cgi
t/TEST protocol/eliza modules/cgi
t/TEST modperl/readline modules/cgi
causes modules/cgi to fail with:
# testing : POST /TestModules::cgi
# PARAM=%33
# expected: 'ok 3'
# received: 'no param or upload data
# '
not ok 2
it doesn't happen with a standalone modules/cgi test
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: 2 problems with mod_perl 2.0 and perl 5.6.1
Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> I've tested mod_perl 2.0 under 5.6.1 and here are the two noticed
> problems:
>
> [Mon Dec 10 16:33:59 2001] [error] [client 127.0.0.1] Undefined
> subroutine &ModPerl::Util::exit called at
> /home/stas/apache.org/mp-perlio/Apache-Test/lib/Apache/Test.pm line 132.
>
> This patch seems to fix it (tested with 5.6.1 and bleadperl):
>
> Index: Apache-Test/lib/Apache/Test.pm
> ===================================================================
> RCS file:
> /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/Test.pm,v
> retrieving revision 1.39
> diff -u -r1.39 Test.pm
> --- Apache-Test/lib/Apache/Test.pm 2001/12/07 19:27:07 1.39
> +++ Apache-Test/lib/Apache/Test.pm 2001/12/10 08:19:39
> @@ -129,7 +129,7 @@
> my $reason = join ', ',
> @SkipReasons ? @SkipReasons : "no reason given";
> print "1..0 # skipped: $reason\n";
> - exit; #XXX: Apache->exit
> + Apache->exit;
> }
> }
> @SkipReasons = (); # reset
In fact this works with 'make test' but it cannot find Apache when
running certain tests stanalone, (e.g. t/TEST -v apr/perlio not
committed yet).
--
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: 2 problems with mod_perl 2.0 and perl 5.6.1
Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> I've tested mod_perl 2.0 under 5.6.1 and here are the two noticed
> problems:
>
> [Mon Dec 10 16:33:59 2001] [error] [client 127.0.0.1] Undefined
> subroutine &ModPerl::Util::exit called at
> /home/stas/apache.org/mp-perlio/Apache-Test/lib/Apache/Test.pm line 132.
>
> This patch seems to fix it (tested with 5.6.1 and bleadperl):
>
> Index: Apache-Test/lib/Apache/Test.pm
> ===================================================================
> RCS file:
> /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/Test.pm,v
> retrieving revision 1.39
> diff -u -r1.39 Test.pm
> --- Apache-Test/lib/Apache/Test.pm 2001/12/07 19:27:07 1.39
> +++ Apache-Test/lib/Apache/Test.pm 2001/12/10 08:19:39
> @@ -129,7 +129,7 @@
> my $reason = join ', ',
> @SkipReasons ? @SkipReasons : "no reason given";
> print "1..0 # skipped: $reason\n";
> - exit; #XXX: Apache->exit
> + Apache->exit;
> }
> }
> @SkipReasons = (); # reset
In fact this works with 'make test' but it cannot find Apache when
running certain tests stanalone, (e.g. t/TEST -v apr/perlio not
committed yet).
--
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org