php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #30986 Advanced config for disable_functions
Submitted: 2004-12-05 15:52 UTC Modified: 2004-12-05 16:44 UTC
From: support at xpower dot net Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.9 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: support at xpower dot net
New email:
PHP Version: OS:

 

 [2004-12-05 15:52 UTC] support at xpower dot net
Description:
------------
I understand what disable_functions in httpd.conf is performance killer. But you can build directory related disabled functions list one time at start. Just made a advanced configuration ruleset in php.ini.  Like

disabled_functions['/home/web/'] = 'system,exec';
disabled_functions['/home/web/virtual1/'] = 'none';
...

and so on

I hope you understand me


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-05 16:44 UTC] derick@php.net
It will also be too much of a performance hit if the disabled functions change per request, as the internal function table in PHP has to be rebuild. We can not change this without affected performance quite a bit.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 01:01:33 2024 UTC