ID:               20377
 Updated by:       [EMAIL PROTECTED]
-Summary:          ini settings, per virtualhost
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Verified
-Bug Type:         Feature/Change Request
+Bug Type:         PHP options/info functions
 Operating System: All
 PHP Version:      4.3.0-pre2
 New Comment:

I'm reclassifying this and changing to other bug we found
when digging into this mess.. :)

If you set some directive in httpd.conf with php_admin_value
it's not possible to change it anymore in .htaccess. This is okay and
the correct behaviour. BUT it does not make PHP_INI_ALL settings not
settable with ini_set() though.

To test this:

httpd.conf:

php_admin_value html_errors 0

.htaccess:

php_value html_errors 1

test.php:

<?php 
/* Comment this line out to see the effect of .htaccess..*/
ini_set('html_errors', 1); 
phpinfo();
?>




Previous Comments:
------------------------------------------------------------------------

[2002-11-15 22:23:43] [EMAIL PROTECTED]

/me points to php_admin_flag and php_admin_value

- Davey

------------------------------------------------------------------------

[2002-11-15 21:25:35] [EMAIL PROTECTED]

".htaccess also falls in the PERDIR class, and it's not a 
good idea to allow setting open_basedir and the other settings from
this file especially for ISPs and stuff. --derick "


------------------------------------------------------------------------

[2002-11-11 20:15:05] [EMAIL PROTECTED]

this is a feature I've put a lot of thought into and I really think
webhosts specifically will benefit from this feature.

It's basically allowing certain ini directives to be set using
php_admin_flag/value on a virtualhost basis.

The config options I think should be modified are these:

open_basedir
session.save_path
upload_tmp_dir
auto_prepend_file
auto_append_file

I don't know whats involved in changing these, but I would assume it's
not a major change. I would love to see this in the forthcoming 4.3
release... 

- Davey

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20377&edit=1

Reply via email to