I know that Lisp and Scheme programmers usually say that eval should be avoided unless strictly necessary. I’ve seen the same recommendation for several program
eval
Eval is just unsecure. For example you have following code:
eval(' hello('.$_GET['user'].'); ');
Now user comes to your site and enters url http://example.com/file.php?user=);$is_admin=true;echo(
Then the resulting code would be:
hello();$is_admin=true;echo();