note 28136 added to function.eval
| From: | Matt at rack1 dot php dot net | Date: | Fri, 03 Jan 2003 14:48:57 +0000 |
| Subject: | note 28136 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41601@lists.php.net to get a copy of this message | ||
With regard to the comments from Jan 8 and 9 2002, some problems may still occur that can be
eliminated by adding whitespace as below:
eval (' ?>' . $string . '<?php ');
However it is important to realise that you must not comment out a line such as this. The delimiters
will still be parsed, which would produce unexpected results and probably errors. Perhaps better to
do something like this, which should have no trouble:
//eval (' ?' . '>' . $string . '<' . '?php ');
--
http://www.php.net/manual/en/function.eval.php
http://master.php.net/manage/user-notes.php?action=edit+28136
http://master.php.net/manage/user-notes.php?action=delete+28136
http://master.php.net/manage/user-notes.php?action=reject+28136