#43822 [Opn]: Allow ini_set('include_path', ??) even when php_admin_value include_path is set

From: Date: Fri, 11 Jan 2008 21:59:31 +0000
Subject: #43822 [Opn]: Allow ini_set('include_path', ??) even when php_admin_value include_path is set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121206@lists.php.net to get a copy of this message
ID: 43822 Updated by: derick@php.net Reported By: birne at 007mail dot de Status: Open Bug Type: Feature/Change Request Operating System: Ubuntu Linux 7.10 PHP Version: 5.2.5 New Comment: I think you can use set_include_path() for this: http://no.php.net/manual/en/function.set-include-path.php Previous Comments: ------------------------------------------------------------------------ [2008-01-11 20:55:42] birne at 007mail dot de 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 this bug report at http://bugs.php.net/?id=43822&edit=1

« previous php.bugs (#121206) next »