Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [xev] GT/CGI.pm and mod_perl2 >= 1.999_22

Quote Reply
Re: [xev] GT/CGI.pm and mod_perl2 >= 1.999_22 In reply to
Alright, I think I figured it out. There may be other changes needed, but for now my forum seems to be working.

In GT/CGI.pm, the mod_perl2 tests should look like this:

Code:

if (MOD_PERL and MOD_PERL >= 2 and $Apache::ServerStarting != 1) {
require APR::Pool;
Apache2::RequestUtil->request->pool->cleanup_register(\&reset_env);
}
elsif (MOD_PERL and MOD_PERL >= 1.99 and $Apache::ServerStarting != 1) {
require Apache2;
require APR::Pool;
Apache->request->pool->cleanup_register(\&reset_env);
}

In GT/Base.pm, the mod_perl2 tests should look like this:

Code:

if (MOD_PERL and MOD_PERL >= 2 and $Apache::ServerStarting != 1) {
require APR::Pool;
Apache2::RequestUtil->request->pool->cleanup_register(sub { $self->_cleanup_obj($msg_pkg, $is_hash) });
}
elsif (MOD_PERL and MOD_PERL >= 1.99 and $Apache::ServerStarting != 1) {
require Apache2;
require APR::Pool;
Apache->request->pool->cleanup_register(sub { $self->_cleanup_obj($msg_pkg, $is_hash) });
}
Subject Author Views Date
Thread GT/CGI.pm and mod_perl2 >= 1.999_22 xev 2847 Jul 3, 2005, 9:11 PM
Post Re: [xev] GT/CGI.pm and mod_perl2 >= 1.999_22
xev 2752 Jul 3, 2005, 9:40 PM