WordPress.org

Make WordPress Core

Ticket #8258: wp-db.php.diff

File wp-db.php.diff, 321 bytes (added by vladimir_kolesnikov, 9 years ago)

Forcefully close mysql connection on shutdown

  • wp-db.php

     
    356356         * @return bool Always true
    357357         */
    358358        function __destruct() {
     359            if ( is_resource($this->dbh) )
     360               @mysql_close($this->dbh);
    359361                return true;
    360362        }
    361363