# Scope of zend_alter_ini_entry in Apache module?

- Thread: https://externals.io/message/3979
- Original archive: https://news-web.php.net/php.internals/3979
- Started by Mark Morley on 2003-08-15T06:39:53+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3979 — Mark Morley — 2003-08-15T06:39:53+00:00

URL: https://externals.io/message/3979#3979

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

---

## #4009 — Zeev Suraski — 2003-08-15T22:44:37+00:00

URL: https://externals.io/message/3979#4009 · In reply to: #3979

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
