perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: changing $req_rec
Date Thu, 23 Jun 2005 03:50:45 GMT
Hi,

> 
> If it's any help I tried writing a subclass of Embperl.pm and 
> overriding the handler() method and putting in a call to 
> Apache::Request->instance, but it just segfaulted...
> 
> I then tried writing a handler that simply created the 
> Apache::Request->instance and then called 
> Embperl::handler($req_instance);
> 
> And this did the same thing...
> 
> Anyway, here's the documentation:-
> http://search.cpan.org/~stas/libapreq-1.33/Request/Request.pm#instance
> 
> Any help you can give would be great.
> 

I took a look at it and it is not so quite easy, because this instance
changes the way the request record looks from the C side. I try to get it in
Embperl in the next release, until then you can write into your httpd.conf

Embperl_Top_Include "$req_rec = Apache::Request->instance($req_rec);"

This will put this in front of every page

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message