php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #6982 disable_functions option don't works in Apache config
Submitted: 2000-10-02 23:28 UTC Modified: 2004-04-13 16:58 UTC
Votes:10
Avg. Score:4.7 ± 0.6
Reproduced:9 of 9 (100.0%)
Same Version:1 (11.1%)
Same OS:2 (22.2%)
From: kirill at mns dot ru Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.0.2 OS: Linux 2.2.16
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2000-10-02 23:28 UTC] kirill at mns dot ru
I'm trying to disable interbase functions for some
directories.

httpd.conf:
<Directory /some/path>
php_admin_value disable_functions 'ibase_pconnect'
</Directory>

But ibase_pconnect still works.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-06 06:59 UTC] stas@php.net
I guess it's intended - they work only for php.ini,
otheriwse user could easyliy override this with .htaccess,
for example. So this is system-global setting for now.
Moving to RFEs.

 [2002-01-11 13:54 UTC] charmaine dot tian at contec-innovations dot com
I tried php-4.1.0 on Linux and still have the bug. I don't agree it's intended behavior. From the PHP online manual, it says:

php_admin_value name value
This sets the value of the specified variable. "Admin" configuration settings can only be set from within the main Apache configuration files, and not from .htaccess files.

So user cannot override this via .htaccess files.

Having the directive in php.ini makes it global and same to all the directories, which is not suitable in our case, because we need to disable functions on per directory basis.
 [2002-01-11 14:37 UTC] rasmus@php.net
Due to the current internal architecture it would be a performance killer to populate the list of functions on a per-request basis.  That's why disabling functions is only available at startup (ie. in php.ini) which means we only have to build this list once.  
You will need to run different classes of Apache/PHP instances if you need different sets of functions available for different virtualhosts.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 02:01:28 2024 UTC