Make WordPress Core

Ticket #27933: wp-db.php.2.patch

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

check for PHP 5.3+

  • wp-includes/wp-db.php

     
    13381338                                }
    13391339                        }
    13401340
     1341                        // Persistent connections with mysqli are prepended with 'p:', supported on PHP5.3+
     1342                        if ( ! $new_link && version_compare(PHP_VERSION, '5.3.0') >= 0 ){
     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 {