Re: Usage of eval()
| From: | Martin Jansen | Date: | Mon, 15 Aug 2005 20:54:10 +0000 |
| Subject: | Re: Usage of eval() | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2876@lists.php.net to get a copy of this message | ||
On Mon Aug 15, 2005 at 09:3324PM +0200, Tobias Schlitt wrote:
> Would be nice if all of you can pick a package and examine the lines
> spit out by grep to look if one can replace evil eval() with something
> else. (Don't get me wrong, there are indeed places where eval() maybe
> secure, but actually it can cause more harm than any other function and
> should be replaced wherever possible).
I'd be happy if we could be even more strict and actually forbid the usage
of eval() in PEAR packages altogether as part of the Coding Standards. Like
with most rules, exceptions can be made, but they should then need to be
discussed on the developers mailing list, and the Group or some other authority
is entitled to make a final decision in such cases.
- Martin