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

From: Date: Mon, 21 Oct 2002 14:50:34 +0000
Subject: setting PHP_INI_SYSTEM config. variables in VHost sections (bug 20009)
Groups: php.dev 
Request: Send a blank email to php-dev+get-89804@lists.php.net to get a copy of this message
Hello, I found out that it is not possible with current php stable version (4.2.3) to define some configuration variables per virtual host - e.g. upload_tmp_dir. The upload_tmp_dir is masked ad PHP_INI_SYSTEM which allows changing php_upload_dir in php.ini or in httpd's main config - not in VHost config, which makes me unable to use different directories for each virtual web. I think that is very bad. The definition of PHP_INI_PERDIR allows changing variables in VHost sections or in .htaccess files. I don't understand this - users are usually able to configure .htaccess, which would allow them to overwrite settings in VHost section of httpd's config. I work with Apache, and with other http servers the situation can be different (any way I would wonder as long this is a policy-problem, not implementation problem). 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. PHP_INI_PERDIR would be then made useless and .htaccess things can be checked with PHP_INI_USER. -- 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. Christian Science Programming: "Let God Debug It!".

« previous php.dev (#89804) next »