src/Native5/Core/Database/DB.php
public function checkConnection() {
        try {
            $st = $this->_conn->query("SELECT 1");
        } catch(\PDOException $pe) {
            if ((strcasecmp($pe->getCode(), 'HY000') !== 0) && !stristr($pe->getMessage(), 'server has gone away'))
                throw $pe;

            if (function_exists('xdebug_start_trace'))
                xdebug_start_trace();

            $this->_resetConnection();
            $this->_connect();
        }

        return true;
    }
public function checkConnection() {
        try {
            $st = $this->_conn->query("SELECT 1");
        } catch(\PDOException $pe) {
            if ((strcasecmp($pe->getCode(), 'HY000') !== 0) && !stristr($pe->getMessage(), 'server has gone away'))
                throw $pe;

            if (function_exists('xdebug_start_trace'))
                xdebug_start_trace();

            $this->_resetConnection();
            $this->_connect();
        }

        return true;
    }
public function checkConnection ( ) { try { $ st = $ this -> _conn -> query ( "SELECT 1" ) ; } catch ( \ PDOException $ pe ) { if ( ( strcasecmp ( $ pe -> getCode ( ) , 'HY000' ) !== 0 ) && ! stristr ( $ pe -> getMessage ( ) , 'server has gone away' ) ) throw $ pe ; if ( function_exists ( 'xdebug_start_trace' ) ) xdebug_start_trace ( ) ; $ this -> _resetConnection ( ) ; $ this -> _connect ( ) ; } return true ; }
_checkConnection  Checks if the PDO connection is active

@access private
@return void
_checkConnection Checks if the PDO connection is active