Re: Usage of eval()

From: Date: Mon, 15 Aug 2005 20:52:57 +0000
Subject: Re: Usage of eval()
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-2877@lists.php.net to get a copy of this message
Martin Jansen wrote:
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 +1
-- Matthew

« previous php.pear.qa (#2877) next »