Plugin Directory

Changeset 2209494


Ignore:
Timestamp:
12/10/2019 06:38:09 PM (6 years ago)
Author:
westi
Message:

hyperdb: Fix Notice: compact(): Undefined variable: tcp in wp-content/db.php

In [1410864] we rewrote the connection timeout code and removed the $tcp variable creating a more verbose $server_state variable so include that in the debug info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hyperdb/trunk/db.php

    r1785108 r2209494  
    646646                        $queries = 1;
    647647                        $lag = isset( $this->lag ) ? $this->lag : 0;
    648                         $this->last_connection = compact('dbhname', 'host', 'port', 'user', 'name', 'tcp', 'elapsed', 'success', 'queries', 'lag');
     648                        $this->last_connection = compact('dbhname', 'host', 'port', 'user', 'name', 'server_state', 'elapsed', 'success', 'queries', 'lag');
    649649                        $this->db_connections[] = $this->last_connection;
    650650                        $this->open_connections[] = $dbhname;
Note: See TracChangeset for help on using the changeset viewer.