Bug #15872: php_admin_value disable_functions does not work when set in httpd.conf
| From: | jr-phpbugs at 3Rcom dot cz | Date: | Tue, 05 Mar 2002 12:49:02 +0000 |
| Subject: | Bug #15872: php_admin_value disable_functions does not work when set in httpd.conf | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-1672@lists.php.net to get a copy of this message | ||
From: jr-phpbugs@3Rcom.cz
Operating system: Linux 2.2.20
PHP version: 4.1.2
PHP Bug Type: PHP options/info functions
Bug description: php_admin_value disable_functions does not work when set in httpd.conf
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 bug report at http://bugs.php.net/?id=15872&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15872&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15872&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15872&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15872&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15872&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15872&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15872&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15872&r=submittedtwice