ID: 9466 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Unknown/Other Function Assigned To: Comments: It does work with a CVS snapshot. <?php $eval = "return 123;"; $e = eval("$eval"); var_dump($e); ?> OUTPUT int(123) You also did not have a ";" terminating your return 0 line. Fix your code and try again. If the problem persists try a CVS snapshot from http://snaps.php.net and reopen this report. Previous Comments: --------------------------------------------------------------------------- [2001-02-26 13:32:53] [EMAIL PROTECTED] When i create a piece of code with eval like : eval = "if (!isset($$value)) {"; eval .= " return 0; " eval .= "}"; eval("$eval"); The return statement doesn't work. It works with earlier versions of php. (php3). --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9466&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]