Make WordPress Core

Ticket #27933: wp-db.php.patch

File wp-db.php.patch, 494 bytes (added by doublesharp, 12 years ago)

Prepend $host with "p:" for persistent mysqli connections

  • wp-includes/wp-db.php

     
    13381338                                }
    13391339                        }
    13401340
     1341                        // Persistent connections with mysqli are prepended with p:
     1342                        if ( ! $new_link ){
     1343                                $host = "p:{$host}";
     1344                        }
     1345
    13411346                        if ( WP_DEBUG ) {
    13421347                                mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags );
    13431348                        } else {