protected function _formatHost($host) { if (strpos($host, ':') > 0) { list($address, $port) = explode(':', $host); } else { $address = $host; $port = strpos($host, '/') === 0 ? null : self::CONN_DEFAULT_PORT; } return array($address, $port); }