Scope of zend_alter_ini_entry in Apache module?

php.internals

Mark Morley

23 years ago
In the custom mass hosting module I'm working on I make calls to zend_alter_ini_entry (thanks Uwe!) to dynamically change PHP settings for each virtual host. Works great, but I'm wondering about the scope of this function. If I change a setting, does that change only affect the current request, or does it change it for the lifetime of the Apache child process, or for all Apache children? Mark

Zeev Suraski

23 years ago
At 09:39 15/08/2003, Mark Morley wrote:
>In the custom mass hosting module I'm working on I make calls to >zend_alter_ini_entry >(thanks Uwe!) to dynamically change PHP settings for each virtual >host. Works great, >but I'm wondering about the scope of this function. > >If I change a setting, does that change only affect the current request, >or does it change >it for the lifetime of the Apache child process, or for all Apache children?
It's supposed to change it only for the life of the current request. I'm saying 'supposed' because there have been sporadic reports about this not working properly, and changes that 'leak' and somehow persist across requests. I still haven't been able to see that in my own eyes, though :I Zeev

Mark Morley

23 years ago
> It's supposed to change it only for the life of the current request. I'm > saying 'supposed' because there have been sporadic reports about this not > working properly, and changes that 'leak' and somehow persist across > requests. I still haven't been able to see that in my own eyes, though :I > > Zeev
Thanks Zeev. It appeared to work that way from my tests, just wanted to make sure. If I find any such "leaks" I'll let you know. Mark