Bug #6982 Updated: disable_functions option don't works in Apache config

From: Date: Fri, 11 Jan 2002 19:37:04 +0000
Subject: Bug #6982 Updated: disable_functions option don't works in Apache config
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76678@lists.php.net to get a copy of this message
ID: 6982 Updated by: rasmus Old Summary: disable_functions option don't works in Apache config Reported By: kirill@mns.ru 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] charmaine.tian@contec-innovations.com 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] stas@php.net 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] kirill@mns.ru 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] sniper@php.net 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] kirill@mns.ru 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

« previous php.dev (#76678) next »