#15872 [Opn->Bgs]: php_admin_value disable_functions does not work when set in httpd.conf
| From: | iliaa@php.net | Date: | Fri, 27 Oct 2006 01:18:20 +0000 |
| Subject: | #15872 [Opn->Bgs]: 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-104041@lists.php.net to get a copy of this message | ||
ID: 15872
Updated by: iliaa@php.net
Reported By: jr-phpbugs at 3Rcom dot cz
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux 2.2.20
PHP Version: 4.1.2
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
A feature request of this nature already exists.
Previous Comments:
------------------------------------------------------------------------
[2002-03-05 08:22:38] rasmus@php.net
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.
------------------------------------------------------------------------
[2002-03-05 07:49:01] jr-phpbugs at 3Rcom dot 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