Re: [Pas-dev] Re: mod_perl 2
Status: Beta
Brought to you by:
mortis
From: Justin B. <ju...@le...> - 2002-05-30 22:48:37
|
I'm even closer. I think I 'hacked' CGI.pm to work with mod_perl-2.0. CGI.pm needed: use APR::Pool; use Apache::RequestRec; # line 222: # Apache->request->register_cleanup(\&CGI::Object::_reset_globals); Apache->request->pool->cleanup_register(\&CGI::Object::_reset_globals); I'm not sure if it works yet. I'm using v3.01b of CGI.pm so the line numbers which I modified may differ. I had to 'hack' some more of Org::Bgw::Pas::RequestHandler. I added: # use Apache::Constants qw(:response :http); use Apache::Const qw(:http :common); use Apache::RequestRec; use Apache::RequestIO; use APR::Table; I had to change: - header_out() to headers_out() (which is the what they recommend for mod_perl-1.x anyways) - print() to puts() I'm still trying to determine what to do with send_http_header(). So far I think the solution is to comment it out. I'm also trying to figure out what to do with redirects. I think that's what I'm blowing up on now. But at least I get a nice white page with no error messages (which means nothing pointing me in the right directions). This is probably a complete waste of time until mod_perl-2.0 is released (along with an updated CGI.pm) but it's fun nonetheless. Justin |