zenovich / runkit

Runkit (official PECL PHP Runkit extension)
http://pecl.php.net/runkit
Other
611 stars 136 forks source link

[Wishlist] whitelisting for functions/classes #96

Open Zhigalin opened 8 years ago

Zhigalin commented 8 years ago

disable_functions/classes is a great thing for sandboxing, but actually it is impossible to remember all the dangerous functions/classes. Maybe you can also introduce whitelisting? So all the features are disabled, and there is an enable_functions/class directive, maybe also with some predefined set of whitelists for stuff like "echo" and other basic non-dangerous functions?