WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/25/2014 12:39:28 AM (8 years ago)
Author:
nacin
Message:

Use ext/mysqli in PHP 5.5 or greater. Expect minor explosions.

props aaroncampbell, pento.
see #21663.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db.php

    r27075 r27250  
    5151        $this->assertGreaterThan( 0, $var );
    5252
    53         mysql_close( $wpdb->dbh );
     53        if ( $wpdb->use_mysqli ) {
     54            mysqli_close( $wpdb->dbh );
     55        } else {
     56            mysql_close( $wpdb->dbh );
     57        }
    5458        unset( $wpdb->dbh );
    5559
Note: See TracChangeset for help on using the changeset viewer.