note 42924 added to function.eval
| From: | ulderico at maber dot com dot br | Date: | Thu, 03 Jun 2004 20:36:26 +0000 |
| Subject: | note 42924 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70501@lists.php.net to get a copy of this message | ||
For some perverted reason that I haven't manage to figure out, CONTINUE and BREAK do not break
a loop OUTSIDE the eval code... Thus:
eval("
for(...){
continue;
}");
works, BUT:
for(...){
eval("continue;");
}
DO NOT WORK. Pay attention to this when you're trying to develope a program that would rewrite
it's own source code using eval as a realtime compiler.
----
Manual Page -- http://www.php.net/manual/en/function.eval.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42924
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42924&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42924&report=yes
Search -- http://master.php.net/manage/user-notes.php