Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 22, 2012
  1. @nikic
Commits on Aug 16, 2012
  1. @nikic
Commits on May 13, 2012
  1. @nikic

    Allow arbitrary expressions for empty()

    nikic authored
    This change is as per RFC https://wiki.php.net/rfc/empty_isset_exprs.
    
    The change allows passing the result of function calls and other
    expressions to the empty() language construct. This is accomplished by
    simply rewriting empty(expr) to !expr.
    
    The change does not affect the suppression of errors when using empty()
    on variables. empty($undefinedVar) will continue not to throw errors.
    When an expression is used inside empty() on the other hand, errors will
    not be suppressed. Thus empty($undefinedVar + $somethingElse) *will*
    throw a notice.
    
    The change also does not make empty() into a real function, so using
    'empty' as a callback is still not possible.
    
    In addition to the empty() changes the commit adds nicer error messages
    when isset() is used on function call results or other expressions.
Commits on Mar 4, 2012
  1. @nikic

    NEWS and UPGRADING for r323862

    nikic authored
Something went wrong with that request. Please try again.