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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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: Thu Dec 26 21:01:28 2024 UTC