Re: ZTS and per-run config settings
| From: | David Hedbor | Date: | Tue, 07 Nov 2000 17:37:07 +0000 |
| Subject: | Re: ZTS and per-run config settings | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37375@lists.php.net to get a copy of this message | ||
Sascha Schumann <sascha@schumann.cx> writes:
> On 6 Nov 2000, David Hedbor wrote:
>
> > I have a small question. When running in a single-process,
> > multi-threaded environment (using ZTS), can I change the settings per
> > thread?
>
> Sure. The new INI framework by Zeev is now fortunately
> thread-safe.
Great.
> > Also is there a way to make PHP load settings from a memory
> > buffer?
>
> You need to apply each change on each request. PHP restores
> the original settings on request shutdown.
Ok, that's what I needed. The main reason I wondered was because I saw
no mentioning of any ZTS-related things in the ini source file.
> For an example, you might want to take a look at
> sapi/apache2filter/apache_config.c:apply_config().
>
> > I'm looking at possibilities of implementing per-virtual-server
> > settings in the above environment.
>
> I don't know how Roxen/Caudium handles configurations, but if
> it is similar to Apache, then it should be quite easy to add.
> If you have any further questions, feel free to ask.
It's web-based, per-module. Shouldn't be a problem to implement it
using the syntax in the above file.
--
[ Below is a random fortune, which is unrelated to the above message. ]
The Heineken Uncertainty Principle:
You can never be sure how many beers you had last night.