Philip Olson wrote:
> Looking through main/main.c it lists many configuration
> directives as PHP_INI_ALL when in the real world this is
> not the case.
>
> For example, register_globals entry is:
>
> STD_PHP_INI_BOOLEAN("register_globals", "1", PHP_INI_ALL,
> OnUpdateBool, register_globals, php_core_globals,
> core_globals)
>
> When it behaves more like: PHP_INI_PERDIR|PHP_INI_SYSTEM
> as PHP_INI_USER cannot change this master value. Another
> example is magic_quote_gpc.
>
> Please share some light on this. The config documentation
> will eventually contain this information and simply
> harvesting the values from main.c does not seem appropriate.
> Please explain a little about local/master values too :)
>
This explaination does not apply to all directives. I just
exmplain about "register_globals" a bit.
If user set "register_globals" to "On" in script, it does not
initialize GET/POST, IIRC. However, changing register_globals
value during script execution is *not* meaningless.
For example, if register_globals set to on *before*
session start, session variable may be initilized as global vars.
To understand why there are many entries have PHP_INI_ALL
requires read&understand source fully....
I guess some of them can be safely set to
PHP_INI_SYSTEM|PHP_INI_PERDIR, though.
--
Yasuo Ohgaki
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]