On Fri, 31 Dec 2004, Nick Kew wrote: > On Thu, 30 Dec 2004, Rasmus Lerdorf wrote: > > > Nobody is saying anything about doing it anywhere within a request. > > Huh? What are you smoking? > > > obviously you can't change the doc_root after the fact, but I see no > > reason to not be able to do it prior to each request in the filename > > translation hook > > Erm, where can I find a filename translation hook outside the request?
You can't, but the translation hook is not *anywhere* within the request, it is at the beginning. > > so other hooks which use the doc_root will function > > correctly. > > Hint: document root is a configuration value used *by default* in > filename translation. Any module can implement its own translation > hook, but trying to change a core configuration value is not only > utterly pointless (your module can use its own variables), it's > working against the apache design, even in a non-threaded MPM. Whether it is against the design or not, it is a useful thing to be able to do. And I fully realize that my module can do whatever it wants, but other modules won't know about it unless I modify them. This can be done quite safely in Apache1, by the way. -Rasmus