private static function _loadClient() { $socket = new TSocket('182.92.223.200', 9091); $socket->setSendTimeout(20000); $socket->setRecvTimeout(8000000); $transport = new TBufferedTransport($socket); $protocol = new TBinaryProtocol($transport); $transport->open(); self::$client = new \Thrift\MT4WebServiceClient($protocol); $socket->setDebug(TRUE); }