ID: 6982
Updated by: rasmus
Old Summary: disable_functions option don't works in Apache config
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: Linux 2.2.16
PHP Version: 4.0.2
New Comment:

Due to the current internal architecture it would be a performance
killer to populate the list of functions on a per-request basis. 
That's why disabling functions is only available at startup (ie. in
php.ini) which means we only have to build this list once.  
You will need to run different classes of Apache/PHP instances if you
need different sets of functions available for different virtualhosts.


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

[2002-01-11 13:54:00] [EMAIL PROTECTED]

I tried php-4.1.0 on Linux and still have the bug. I don't agree it's
intended behavior. From the PHP online manual, it says:

php_admin_value name value
This sets the value of the specified variable. "Admin" configuration
settings can only be set from within the main Apache configuration
files, and not from .htaccess files.

So user cannot override this via .htaccess files.

Having the directive in php.ini makes it global and same to all the
directories, which is not suitable in our case, because we need to
disable functions on per directory basis.

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

[2001-03-06 06:59:17] [EMAIL PROTECTED]

I guess it's intended - they work only for php.ini,
otheriwse user could easyliy override this with .htaccess,
for example. So this is system-global setting for now.
Moving to RFEs.


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

[2000-12-26 09:59:27] [EMAIL PROTECTED]

I've tried php 4.0.4 but disable_functions only works from
php.ini, not from apache config.

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

[2000-11-27 06:09:32] [EMAIL PROTECTED]

Please try latest snapshot from http://snaps.php.net/
and report back whether this works with it or not.

--Jani

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

[2000-10-02 23:28:52] [EMAIL PROTECTED]

I'm trying to disable interbase functions for some
directories.

httpd.conf:
<Directory /some/path>
php_admin_value disable_functions 'ibase_pconnect'
</Directory>

But ibase_pconnect still works.

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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to