Anders Lidén wrote:
I have some troubles with mod_perl (loosing indata), but the problems are so obscure that it seems to me as I am the only (or one of very very few) who are encountering these problems.mod_perl hooks into Apache in mod_perl.c. the request object is built in Apache.xs:
Anyway, what I need to continue finding this problem and eliminating it is:
Where is the C code to mod_perl is the $r (request object) built?
void
request(self, r=NULL)
SV *self
Apache r
PPCODE:
self = self;
if(items > 1) perl_request_rec(r);
XPUSHs(perl_bless_request_rec(perl_request_rec(NULL)));
perl_call_handler() in mod_perl.c is what is called for each phase in the request cycle. after perl_call_handler() does lots of stuff to isolate the actual Perl handler, the call to the Perl subroutine is here:Where is the $r (request object) passed to the handler function?
#ifdef PERL_METHOD_HANDLERS
if(is_method)
count = perl_call_method(method, G_EVAL | G_SCALAR);
else
#endif
count = perl_call_sv(sv, G_EVAL | G_SCALAR);
Answers to these questions would greatly speed up my debugging. Thanks alot.
HTH
--Geoff