ID:               31542
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jcmailtrap-php at yahoo dot ca
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: RHEL3
 PHP Version:      5.0.3
 New Comment:

Derick, why you reopened this bug? What next should be documented?


Previous Comments:
------------------------------------------------------------------------

[2005-01-17 08:24:29] [EMAIL PROTECTED]

Jani, you're wrong. Eval is supposed not to throw a fatal error when
the script passed to it is wrong. In case of a parse-error it does
return false, and does not abort the script, where it normally would
abort the script (with required that is). For things like calling an
not existing method it will of course throw a fatal error.

------------------------------------------------------------------------

[2005-01-14 17:02:57] [EMAIL PROTECTED]

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

Changed to: "In case of a parse error in the evaluated code, eval()
returns FALSE."

------------------------------------------------------------------------

[2005-01-14 05:39:05] [EMAIL PROTECTED]

So the one who wrote the manual page made a mistake since
eval() isn't some magic thing that can override fatal errors..


------------------------------------------------------------------------

[2005-01-14 05:31:46] jcmailtrap-php at yahoo dot ca

Well, in eval()'s manual page, it is stated:
In case of a fatal error in the evaluated code, eval() returns FALSE.

Obviously eval() did not return FALSE in this case because the script
exited.

------------------------------------------------------------------------

[2005-01-14 05:26:58] [EMAIL PROTECTED]

Fatal errors are...tadaa..FATAL! As such -> exit.
No bug here.


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31542

-- 
Edit this bug report at http://bugs.php.net/?id=31542&edit=1

Reply via email to