php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15872 php_admin_value disable_functions does not work when set in httpd.conf
Submitted: 2002-03-05 07:49 UTC Modified: 2006-10-27 01:18 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jr-phpbugs at 3Rcom dot cz Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.1.2 OS: Linux 2.2.20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jr-phpbugs at 3Rcom dot cz
New email:
PHP Version: OS:

 

 [2002-03-05 07:49 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-05 08:22 UTC] 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.
 [2006-10-27 01:18 UTC] iliaa@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 14:01:31 2025 UTC