Permalink
Commits on May 13, 2012
  1. Allow arbitrary expressions for empty()

    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.
    committed Apr 12, 2012
Commits on May 12, 2012
  1. @laruence

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Fixed Bug #62005 (unexpected behavior when incrementally assigning to a member of a null object)
      fix stack overflow in php_intlog10abs()
      fix stack overflow in php_intlog10abs()
    laruence committed May 12, 2012
  2. @laruence

    Merge branch 'PHP-5.3' into PHP-5.4

    * PHP-5.3:
      Fixed Bug #62005 (unexpected behavior when incrementally assigning to a member of a null object)
      fix stack overflow in php_intlog10abs()
    
    Conflicts:
    	Zend/zend_execute.c
    laruence committed May 12, 2012
  3. @laruence

    Fixed Bug #62005 (unexpected behavior when incrementally assigning to…

    … a member of a null object)
    laruence committed May 12, 2012
Commits on May 11, 2012
  1. @nunoplopes

    fix stack overflow in php_intlog10abs()

    bug uncovered by LLVM/clang's new -fbounds-checking switch
    this patch fixes a crash in ext/standard/tests/math/round_large_exp.phpt
    nunoplopes committed May 11, 2012
  2. @nunoplopes

    fix stack overflow in php_intlog10abs()

    bug uncovered by LLVM/clang's new -fbounds-checking switch
    this patch fixes a crash in ext/standard/tests/math/round_large_exp.phpt
    nunoplopes committed May 11, 2012
  3. @nunoplopes
  4. @nunoplopes

    fix stack overflow in php_intlog10abs()

    bug uncovered by LLVM/clang's new -fbounds-checking switch
    this patch fixes a crash in ext/standard/tests/math/round_large_exp.phpt
    nunoplopes committed May 11, 2012
  5. @weltling

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
    weltling committed May 11, 2012
  6. @weltling

    Merge branch 'PHP-5.3' into PHP-5.4

    * PHP-5.3:
      Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
    weltling committed May 11, 2012
  7. @laruence

    Merge branch 'PHP-5.4'

    laruence committed May 11, 2012
  8. @weltling

    Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails

    This fixes a general issue. In this ticket and not for the first time
    is being seen, that people are trying to use data from "examples"
    in the tests. When extracting a test pack only "tests" and its siblings
    was taken into account. Now "examples" are copied as well.
    weltling committed May 11, 2012
  9. @laruence
  10. @reeze
Commits on May 10, 2012
  1. @weltling

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Fix bug #61992 ext\standard\tests\general_functions\bug44295.phpt fails
    weltling committed May 10, 2012
  2. @weltling

    Merge branch 'PHP-5.3' into PHP-5.4

    * PHP-5.3:
      Fix bug #61992 ext\standard\tests\general_functions\bug44295.phpt fails
    weltling committed May 10, 2012
  3. @weltling

    Fix bug #61992 ext\standard\tests\general_functions\bug44295.phpt fails

    Exception text differ on windows
    weltling committed May 10, 2012
  4. @weltling

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      updated NEWS
    weltling committed May 10, 2012
  5. @weltling

    updated NEWS

    weltling committed May 10, 2012
  6. @weltling

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      updated NEWS
    weltling committed May 10, 2012
  7. @weltling

    Merge branch 'PHP-5.3' into PHP-5.4

    * PHP-5.3:
      updated NEWS
    weltling committed May 10, 2012
  8. @weltling

    updated NEWS

    weltling committed May 10, 2012
  9. @weltling

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Fix bug ext\standard\tests\file\realpath_cache_win32.phpt fails
    weltling committed May 10, 2012
  10. @weltling

    Merge branch 'PHP-5.3' into PHP-5.4

    * PHP-5.3:
      Fix bug ext\standard\tests\file\realpath_cache_win32.phpt fails
    weltling committed May 10, 2012
  11. @weltling

    Fix bug ext\standard\tests\file\realpath_cache_win32.phpt fails

    What happens here is trivial long overflow. Despite the bug attracted
    attention on windows, the same story is on linux. Just wait for a big
    anough bucket->key . The linux test had %i to check the key value
    which should be %d all the way.
    weltling committed May 10, 2012
Commits on May 9, 2012
  1. @weltling

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Fix bug 61901 ext\phar\tests\phar_buildfromdirectory2.phpt fails
    weltling committed May 9, 2012
  2. @weltling

    Merge branch 'PHP-5.3' into PHP-5.4

    * PHP-5.3:
      Fix bug 61901 ext\phar\tests\phar_buildfromdirectory2.phpt fails
    weltling committed May 9, 2012
  3. @weltling

    Fix bug 61901 ext\phar\tests\phar_buildfromdirectory2.phpt fails

    Another error message is produced by win specific code
    weltling committed May 9, 2012
  4. @laruence

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Correct test title
    laruence committed May 9, 2012
  5. @laruence

    Correct test title

    laruence committed May 9, 2012
  6. @laruence

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Implemented FR #61977 (Need CLI web-server support for files with .htm & svg extensions)
    laruence committed May 9, 2012
  7. @laruence
  8. @laruence

    Merge branch 'PHP-5.4'

    * PHP-5.4:
      Fix test failed,  the fsockopen will be refused immediately if the server is not set up.
      - BFN
    laruence committed May 9, 2012
  9. @laruence
  10. @felipensp

    - BFN

    felipensp committed May 9, 2012