You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2003/01/28 02:01:26 UTC
Re: [mp2] Sections, Method handlers
Randy J. Ray wrote:
> Any indication of when/if these features will make it to mp2? I've been
> trying to get my RPC::XML code (specifically the Apache::RPC::Server and
> Apache::RPC::Status modules) to work under Apache2 and mod_perl2 (thanks
> to Red Hat for pushing up my timetable on this by installing those).
I guess Philippe can comment on the <Perl > sections part, I think it should
be in RSN. What about method handlers? What's wrong with them?
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp2] Sections, Method handlers
Posted by Stas Bekman <st...@stason.org>.
Philippe M. Chiasson wrote:
> On Tue, 2003-01-28 at 09:01, Stas Bekman wrote:
>
>>Randy J. Ray wrote:
>>
>>>Any indication of when/if these features will make it to mp2? I've been
>>>trying to get my RPC::XML code (specifically the Apache::RPC::Server and
>>>Apache::RPC::Status modules) to work under Apache2 and mod_perl2 (thanks
>>>to Red Hat for pushing up my timetable on this by installing those).
>>
>>I guess Philippe can comment on the <Perl > sections part, I think it should
>>be in RSN. What about method handlers? What's wrong with them?
>
>
> Well, <Perl > sections are mostly done, except for :
>
> * Apache::PerlSections missing features for backwards compatibility:
> - $Apache::Server::SaveConfig
> - $Apache::ReadConfig::DocumentRoot
> - $Apache::Server::StrictPerlSections
> - Apache::PerlSections->store(filename)
->dump? Apache::Status has:
sub status_section_config {
my($r, $q) = @_;
require Apache::PerlSections;
["<pre>", Apache::PerlSections->dump, "</pre>"];
}
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: [mp2] Sections, Method handlers
Posted by "Philippe M. Chiasson" <go...@cpan.org>.
On Tue, 2003-01-28 at 10:22, Randy J. Ray wrote:
> > Is there anything specific you found not working like in 1.x with your
> > <Perl > sections ?
>
> Actually, I got an error saying that <Perl> section support was not available
> yet. I'm running from rpm packages, and have mod_perl 1.99_05.
<Perl > sections were introduced in 1.99_08
> Randy
> --
> -------------------------------------------------------------------------------
> Randy J. Ray | Men occasionally stumble over the truth, but most of them
> rjray@tellme.com | pick themselves up and hurry off as if nothing had happened.
> +1 650 930-9097 | -- Sir Winston Churchill
>
Re: [mp2] Sections, Method handlers
Posted by "Philippe M. Chiasson" <go...@cpan.org>.
On Tue, 2003-01-28 at 09:01, Stas Bekman wrote:
> Randy J. Ray wrote:
> > Any indication of when/if these features will make it to mp2? I've been
> > trying to get my RPC::XML code (specifically the Apache::RPC::Server and
> > Apache::RPC::Status modules) to work under Apache2 and mod_perl2 (thanks
> > to Red Hat for pushing up my timetable on this by installing those).
>
> I guess Philippe can comment on the <Perl > sections part, I think it should
> be in RSN. What about method handlers? What's wrong with them?
Well, <Perl > sections are mostly done, except for :
* Apache::PerlSections missing features for backwards compatibility:
- $Apache::Server::SaveConfig
- $Apache::ReadConfig::DocumentRoot
- $Apache::Server::StrictPerlSections
- Apache::PerlSections->store(filename)
<Perl > sections were re-implemented from scratch and are supposed to be
theoritically backward-compatible. But the test suite is not quite
extensive...
Is there anything specific you found not working like in 1.x with your
<Perl > sections ?
Gozer out.
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com
>
>
Re: [mp2] Sections, Method handlers
Posted by Stas Bekman <st...@stason.org>.
[please always reply to the list! thank you!]
Randy J. Ray wrote:
>> I guess Philippe can comment on the <Perl > sections part, I think it
>> should be in RSN. What about method handlers? What's wrong with them?
>
>
> Only that my handlers, both prototyped as ($$), received only the
> request object (Apache::RequestRec reference) in their arg list, rather
> than getting the class as the first argument. Of course, the intent
> behind having the server classes be method-handlers is to assign the the
> server object as the handler directly, but that requires the <Perl>
> section support.
>
> Which makes me think-- I always found it odd in mp1 that assigning an
> object as a location-handler required a "frozen reference" of sorts--
> '$obj' vs. simple $obj. The latter seems so much more intuitive. Is this
> changing for mp2?
See:
http://perl.apache.org/docs/2.0/user/compat/compat.html#Method_Handlers
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com