Answer the question
In order to leave comments, you need to log in
Eval() is not a function in PHP. How to be?
In PHP, eval() is not a function: "Because this is a language construct and not a function, it cannot be called using variable functions" ( link ).
The disable_functions option in php.ini does not affect eval().
How to disable eval() without resorting to safe mode?
Answer the question
In order to leave comments, you need to log in
Maybe this will help you www.hardened-php.net/suhosin/configuration.html#suhosin.executor.disable_eval
maybe just put a suhosin-patch that disables it and does other useful things?
besides eval, there are a bunch of other ways to execute php code.
for example:
1. $newfunc = create_function('', '};phpinfo();//');
2. preg_replace with the /e
modifier
3. backticks: `ls -lia`
4. and a bunch of other tricks...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question