Bug #15872 Updated: php_admin_value disable_functions does not work when set in httpd.conf
| From: | rasmus@php.net | Date: | Tue, 05 Mar 2002 13:22:39 +0000 |
| Subject: | Bug #15872 Updated: php_admin_value disable_functions does not work when set in httpd.conf | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1677@lists.php.net to get a copy of this message | ||
ID: 15872
Updated by: rasmus@php.net
Reported By: jr-phpbugs@3Rcom.cz
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] jr-phpbugs@3Rcom.cz
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