Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small improvement to the eval() call #1162

Closed
wants to merge 1 commit into from
Closed

Commits on Apr 2, 2015

  1. Small improvement to the eval() call

    http://php.net/manual/en/function.eval.php
    
    > eval() returns NULL unless return is called in the evaluated code,
    > in which case the value passed to return is returned.
    > If there is a parse error in the evaluated code,
    > eval() returns FALSE and execution of the following code continues normally.
    
    A 'return' statement seems a more elegant way of handling this than using `$result = `. The behavior remains unchanged. If an error happens eval() will return `False` so $return will retain it's `False` if that happens,
    dracony committed Apr 2, 2015
    Configuration menu
    Copy the full SHA
    e4eb27b View commit details
    Browse the repository at this point in the history