Skip to:
Content

BuddyPress.org

Changeset 10983


Ignore:
Timestamp:
08/02/2016 01:49:17 PM (3 years ago)
Author:
boonebgorges
Message:

Don't expect a reference in upload_error_handler() for attachments tests.

A bug in PHP 7.0.9+ is causing an error here, because of the way it
handles references in certain cases. See https://bugs.php.net/bug.php?id=72598.

Fixes #7204.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/class-bp-attachment.php

    r10502 r10983  
    6060     * as soon as all the test_form have been executed in _wp_handle_upload
    6161     */
    62     public function upload_error_handler( &$file, $message ) {
     62    public function upload_error_handler( $file, $message ) {
    6363        if ( 'fake_upload_success' !== $message ) {
    6464            return array( 'error' => $message );
Note: See TracChangeset for help on using the changeset viewer.