From:             birne at 007mail dot de
Operating system: Ubuntu Linux 7.10
PHP version:      5.2.5
PHP Bug Type:     Feature/Change Request
Bug description:  Allow ini_set('include_path', ??) even when php_admin_value 
include_path is set

Description:
------------
After the patch for #41561 was applied, ini_set() could no longer
overwrite any configuration value that was previously defined using
php_admin_*. 

In #43598 sniper wrote: php_admin_* is supposed to make any such option
unusable by anybody in any script. And it's meant for hosting companies.

I agree, that in a hosting environment no customer should be able to
overwrite configuration like open_basedir. But there is no harm in allowing
the customer to change include_path; on the contrary is it of great use for
the customer to add his own libraries.

Before the #41561 patch was applied, this was already possible for years
and that was no bug, because overwriting open_basedir was not possible at
all.

I suggest to define another "Changeable" scope (see
http://php.net/manual/en/ini.php) for configuration values like
"PHP_INI_OVERWRITEABLE" wich behaves like "PHP_INI_ALL" but in addition to
that can be overwritten using ini_set() even when previously defined using
php_admin_*. The inlude_path would be one of the new PHP_INI_OVERWRITEABLE
directives, additional harmless ones must be defined.

Please make sure to properly document that change - the new behavior of
the patch for #41561 is still not documented anywhere (or I did not find
it..)


-- 
Edit bug report at http://bugs.php.net/?id=43822&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43822&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43822&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43822&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43822&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43822&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43822&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43822&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43822&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43822&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43822&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43822&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43822&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43822&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43822&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43822&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43822&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43822&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43822&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43822&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43822&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43822&r=mysqlcfg

Reply via email to