php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36511 Eval() returns also the last (or only) statement.
Submitted: 2006-02-24 11:47 UTC Modified: 2006-02-24 13:33 UTC
From: rb at ez dot no Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: -
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 + 49 = ?
Subscribe to this entry?

 
 [2006-02-24 11:47 UTC] 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.   


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-24 13:33 UTC] rb at ez dot no
After testing the problem a bit more, the documentation 
was right and I was wrong.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 23:01:32 2024 UTC