perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Williams" <>
Subject Re: Looking for magic in Apache->request
Date Sun, 01 Apr 2001 18:07:40 GMT (Matt Sergeant) wrote:
>On Fri, 30 Mar 2001, Ken Williams wrote:
>> The thing I can't figure out from the XS code is how/where
>> Apache->request calls sv2request_rec(), which actually does the
>> extraction work.  Somehow it's automatically converted, because I see no
>> manual conversion in the Apache->request code below:
>> 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)));
>> Any pointers?
>It's done in the typemap.

Dang.  So that would mean that in order to fix this, Apache->request($r)
would have to accept an arbitrary scalar, not something automatically
converted to an Apache object, right?

And then there's the matter of how it should be stored...

>> The reason I'm asking is that the current behavior of
>> Apache->request($r) makes it really hard to subclass Apache::Registry
>> and the like, because lots of code (like call Apache->request to
>> get the current request object.
>Yeah I have this same "bug" in AxKit. It's a real pain.

If I get some time this week I'll see whether I can make a patch.  But
I'm in pretty unfamiliar territory.

  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity                            The Math Forum

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message