#36511 [Opn->Bgs]: Eval() returns also the last (or only) statement.
| From: | rb at ez dot no | Date: | Fri, 24 Feb 2006 12:33:25 +0000 |
| Subject: | #36511 [Opn->Bgs]: Eval() returns also the last (or only) statement. | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969372056@lists.php.net to get a copy of this message | ||
ID: 36511
User updated by: rb at ez dot no
Reported By: rb at ez dot no
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: -
PHP Version: Irrelevant
New Comment:
After testing the problem a bit more, the documentation
was right and I was wrong.
Previous Comments:
------------------------------------------------------------------------
[2006-02-24 11:47:32] rb at ez dot no
Description:
------------
It seems that the eval() function returns the last
executed statement, when no return statement is in the to
eval'ed code. The documentation describes nothing about
this behavior.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36511&edit=1