php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #19368 don't work disable_functions: phpinfo in httpd.conf
Submitted: 2002-09-12 02:13 UTC Modified: 2002-09-12 03:56 UTC
From: thor at compnet dot ru Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.3 OS: FreeBSD 4.1.1-RELEASE
Private report: No CVE-ID: None
 [2002-09-12 02:13 UTC] thor at compnet dot ru
php.ini:

disable_functions = exec,passthru,proc_close,proc_open,shell_exec,system

httpd.conf (<VirtualHost>):

php_admin_value disable_functions phpinfo,exec,passthru,proc_close,proc_open,shell_exec,system

And in this virtual host phpinfo - works.

I don't know, may be it is not bug, but feature.

Help me please.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-12 02:17 UTC] derick@php.net
You can't set those from VHost configurations, only from the main httpd.conf or php.ini files.
See: http://www.php.net/manual/sv/print/function.ini-set.php#AEN68028
It says: disable_functions PHP_INI_SYSTEM, which means that it's only settable from "system" files (ie. php.ini or the main httpd.conf). If it would have included "PER_DIR" then it would have been settable per VHost and from a .htaccess file.

Derick
 [2002-09-12 02:36 UTC] thor at compnet dot ru
> See: http://www.php.net/manual/sv/print/function.ini-set.php#AEN68028

PHP_INI_PERDIR 2 Entry can be set in .htaccess  
PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf 

I think:

- It means PHP_INI_PERDIR can be set in .htaccess
(to change this - I don't need restart server)

- And PHP_INI_SYSTEM can be set in httpd.conf
(to change - I MUST restart server, even I change in VHOST).

Maybe you rewrite doc section:
"PHP_INI_PERDIR - means .htaccess AND VIRTUALHOST."

Thank you.
 [2002-09-12 03:31 UTC] derick@php.net
Yes, I already fixed that .. but it takes awhile before the manuel on the site updates.

Derick
 [2002-09-12 03:36 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2002-09-12 03:56 UTC] thor at compnet dot ru
Thank you very much for your help.

PHP - the best of the best!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 04:01:33 2025 UTC