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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rb at ez dot no
New email:
PHP Version: OS:

 

 [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: Fri Mar 29 15:01:28 2024 UTC