Re: setting PHP_INI_SYSTEM config. variables in VHost sections (bug 20009)

From: Date: Thu, 28 Nov 2002 13:18:01 +0000
Subject: Re: setting PHP_INI_SYSTEM config. variables in VHost sections (bug 20009)
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-91863@lists.php.net to get a copy of this message
Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: -> Matus Fantomas Uhlar wrote: ->> Therefore I propose a change: ->> ->> PHP_INI_SYSTEM variables should be allowed to change by admin - in ->> system-wide php.ini or httpd.conf, no matter if it's VHost or not. -> -> I've never tried to use php_value/php_admin_value/php_flag/php_admin_flag -> in global httpd.conf context. Does it work with Apache1.x SAPI? Well, it does work. -> Have you tried php_admin_vlaue/php_admin_flag? -> (PHP_INI_ALL directives can be modified in script at least under 4.3.0-dev, -> though) I tried php_admin_flag which worked strange (did set some variables, did not set others) php_admin_value seems to work correct. The fault was in me - I used php_admin_flag where I should use value. However I wonder why php_admin_flag worked correctly with text values... I will check it once more. -> There may be things that are behaving differently from Apache SAPI. -> Please report it bug, see if Apache2 SAPI can be made work like -> Apache SAPI. (Search bug db first, 1 bug/report, please) I won't try apache2.x now. ->> PHP_INI_PERDIR would be then made useless and .htaccess things can be ->> checked with PHP_INI_USER. -> I probably don't understand this line correctly. I mean it this way: Either variables/flags are admin-only: only admin can change them in httpd's config, independently if it's global or virtualhost section or they are user-settable - user can set them in .htaccess or scripts. So I only see reason for PHP_INI_SYSTEM and PHP_INI_USER (or let's call it PHP_INI_ALL?) The variable PHP_INI_PERDIR seems to be useless to me - I can't find any valid reason to use it this way. -- Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I don't wish to receive spam to this address. Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu. 42.7 percent of all statistics are made up on the spot.

« previous php.dev (#91863) next »