ID: 15872 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open -Bug Type: PHP options/info functions +Bug Type: Feature/Change Request Operating System: Linux 2.2.20 PHP Version: 4.1.2 New Comment:
And as the replies to the former reports hopefully would have told you, this is not a bug. Moving to feature request. The reason this is so is that it would really kill performance if on every single request we had to rebuild the list of available functions which is what we would have to do if this was changeable on a per-server or per-directory basis. Previous Comments: ------------------------------------------------------------------------ [2002-03-05 07:49:01] [EMAIL PROTECTED] Hello, It looks like that despite numbers of former reports about this problem, it is still not fixed (at least in PHP 4.1.2 and Apache 1.3.19, that I'm testing with). I want to control which PHP functions are globally disabled in PHP interpreter, per specific virtual webserver. Here's the example: In httpd.conf, I set up this virtual server entry: <VirtualHost my.server.name:80> ServerName my.server.name ServerAdmin admin@mail DocumentRoot /path/to/docroot # Disable the function phpinfo() in PHP globally php_admin_value disable_functions phpinfo </VirtualHost> Then, within /path/to/docroot, I create the testing script "mytest.php": <? echo "this is a testing script"; phpinfo(); ?> Now, when I access http://my.server.name/mytest.php , the output of phpinfo() is still displayed, ignoring the fact I've set 'php_admin_value disable_functions phpinfo' in httpd.conf (and restarted Apache). Jan ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15872&edit=1