Re: PHP_INI USER|PERDIR|SYSTEM|ALL

From: Date: Tue, 29 Jan 2002 03:35:04 +0000
Subject: Re: PHP_INI USER|PERDIR|SYSTEM|ALL
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78413@lists.php.net to get a copy of this message
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

« previous php.dev (#78413) next »