>>Still let's say that this works, run-time can always call 
>>$s->dir_config->set(foo => $bar), how a call to 
>>$r->dir_config can know 
>>about this change in the same request?
> 
> Am I missing something in the new API?  $s->dir_config?  I don't see the
> need for dir_config on a per-server level.  that's not how it is in 1.x and
> it works just fine...


Well, I'm catching up with the guts of 1.x and 2.x at the same time, 
that's what I see in 1.x:

SV *
dir_config(r, key=NULL, ...)
     Apache  r
     char *key

     ALIAS:
     Apache::Server::dir_config = 1

so you can call dir_config on $r or $s if I understand correctly. So any 
request can change a configuration of the server's setvar's.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to