Got it working! Thanks for the help.

The changes I made are below. Once question:
There's a block that dies if there is no INTERP in the header. This forces you to pass that in the header for all requests made against that version of the server, right?

I changed it to just return DECLINED so it would just ignore this stuff for other requests. Is this a bad idea for some reason?

For the record, the changes I made to get it running under mod_perl 1 are below.

Jim

----------------------------
I added the following to my extra.conf.in:

PerlModule Apache::TestHandler
PerlInitHandler  Apache::TestHandler::same_interp_fixup

Changes to TestHandler.pm:

23c23,24
< use Apache2::Const -compile => qw(OK NOT_FOUND SERVER_ERROR);
---
> #use Apache2::Const -compile => qw(OK NOT_FOUND SERVER_ERROR);
> use Apache::Constants qw(DECLINED OK NOT_FOUND SERVER_ERROR);
24a26
>
28,30c30,32
< if ($ENV{MOD_PERL} && require mod_perl2) {
<     require Apache2::RequestIO; # puts
< }
---
> #if ($ENV{MOD_PERL} && require mod_perl2) {
> #    require Apache2::RequestIO; # puts
> #}
76,77c78,80
<         # shouldn't be requesting this without an INTERP header
<         die "can't find the interpreter key";
---
>       # shouldn't be requesting this without an INTERP header
>       return Apache::Constants::DECLINED;
>       #  die "can't find the interpreter key";
89c92,93
<         return Apache2::Const::NOT_FOUND;
---
> #        return Apache2::Const::NOT_FOUND;
>         return Apache::Constants::NOT_FOUND;
98c102
<     return Apache2::Const::OK;
---
>     return Apache::Constants::OK;



On Aug 17, 2005, at 5:38 PM, Stas Bekman wrote:

Jim Brandt wrote:

I should have added that I'm running on:
#Server: Apache/1.3.33 (Unix) mod_perl/1.29
Does that explain it right there? Maybe I don't have a handler installed that comes with the mod_perl2 distro? Or does the sameinterp stuff only run on mod_perl2? I started to try to copy the tests over into my testing sandbox, but it's slow going. There are many hooks into different modules in the test tree. There are also a few calls in sameinterp.pm to Apache2 modules like Apache2::RequestIO and Apache2::Const.


It should work with any mp version. But you miss the configuration bit:

  PerlInitHandler     Apache::TestHandler::same_interp_fixup


--
__________________________________________________________________
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


==========================================
Jim Brandt
Administrative Computing Services
University at Buffalo

Reply via email to