How to make disable_functions just for one site/directory/file

Welcome.
Can't find the option how to make disable_functions just for one site/directory/file.
— Debian GNU/Linux 7
Apache 2.2.22-13
nginx 1.2.1-2.2
Php5.4.4-14
The server VM on Vitrualbox

If matter for the solution of the first function, which will go under the restrictions — file_get_contents, curl... Globally for all sites to block them is not an option, they are badly needed in other projects on the same machine. Breed Wirth Park.machines is also not an option.

Saw some package Suhosin, but for debian7 no...
What can you use or else limit?
October 3rd 19 at 02:40
1 answer
October 3rd 19 at 02:42
Solution
something is not working as it should, installed runkit, and when using the function gives an error 500...
it remains unclear just "rebuild using the --enable-maintainer-zts"
p.s. in administration I far. - ramona_Lubowitz commented on October 3rd 19 at 02:45
Note: By default, only userspace functions may be removed, renamed, or modified. In order to override internal functions, you must enable the runkit.internal_override setting in php.ini.

Included? - Aniya_McClure commented on October 3rd 19 at 02:48
# php -R runkit_function_remove("file_get_contents"); echo file_get_contents("/etc/hosts");'; echo
Fatal error: Call to undefined function file_get_contents() in Command line code on line 1

- Aniya_McClure commented on October 3rd 19 at 02:51
finally I did it :).
although as it turned out I runkit_function_remove not so suitable, in this case it would be better runkit_function_redefine for the substitution function will not error and you can notify that there was an attempt of the action...
Thanks for the help. - ramona_Lubowitz commented on October 3rd 19 at 02:54
Well this is a question the correct response to the function call) - Aniya_McClure commented on October 3rd 19 at 02:57

Find more questions by tags Information securityApachePHP