note 98731 added to function.eval
| From: | php at dynamicplus dot it | Date: | Fri, 02 Jul 2010 22:53:39 +0000 |
| Subject: | note 98731 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170673@lists.php.net to get a copy of this message | ||
Please note that using
eval( 'return TRUE;?>' . $sPhpCode );
is not safe to check if syntax is correct... as this will procuce a fatal error (uncatchable)....
eval( 'return TRUE;?><?php empty( function($var) ); ?>' );
using empty() on a non-pure variable will produce a
compilation error!
----
Server IP: 69.147.83.197
Probable Submitter: 79.33.210.108
----
Manual Page -- http://www.php.net/manual/en/function.eval.php
Edit -- https://master.php.net/note/edit/98731
Del: integrated -- https://master.php.net/note/delete/98731/integrated
Del: useless -- https://master.php.net/note/delete/98731/useless
Del: bad code -- https://master.php.net/note/delete/98731/bad+code
Del: spam -- https://master.php.net/note/delete/98731/spam
Del: non-english -- https://master.php.net/note/delete/98731/non-english
Del: in docs -- https://master.php.net/note/delete/98731/in+docs
Del: other reasons-- https://master.php.net/note/delete/98731
Reject -- https://master.php.net/note/reject/98731
Search -- https://master.php.net/manage/user-notes.php