#36511 [NEW]: Eval() returns also the last (or only) statement.
| From: | rb at ez dot no | Date: | Fri, 24 Feb 2006 10:47:33 +0000 |
| Subject: | #36511 [NEW]: Eval() returns also the last (or only) statement. | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969372055@lists.php.net to get a copy of this message | ||
From: rb at ez dot no
Operating system: -
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Eval() returns also the last (or only) statement.
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 bug report at http://bugs.php.net/?id=36511&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36511&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36511&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36511&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36511&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36511&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36511&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36511&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36511&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36511&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36511&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36511&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36511&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36511&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36511&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36511&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36511&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36511&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36511&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36511&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36511&r=mysqlcfg