original_string: public function read($size = null)
      {
          if (feof($this->_stream)) {
              $this->close();
              $this->_params['debug']->info(
                  'ERROR: Server closed the connection.'
              );
              throw new Horde_Imap_Client_Exception(
                  Horde_Imap_Client_Translation::r("Server closed the connection unexpectedly."),
                  Horde_Imap_Client_Exception::DISCONNECT
              );
          }
  
          if (($read = fgets($this->_stream)) === false) {
              $this->_params['debug']->info('ERROR: read/timeout error.');
              throw new Horde_Imap_Client_Exception(
                  Horde_Imap_Client_Translation::r("Error when communicating with the mail server."),
                  Horde_Imap_Client_Exception::SERVER_READERROR
              );
          }
  
          $this->_params['debug']->server(rtrim($read, "\r\n"));
  
          return $read;
      }
code: public function read($size = null)
      {
          if (feof($this->_stream)) {
              $this->close();
              $this->_params['debug']->info(
                  'ERROR: Server closed the connection.'
              );
              throw new Horde_Imap_Client_Exception(
                  Horde_Imap_Client_Translation::r("Server closed the connection unexpectedly."),
                  Horde_Imap_Client_Exception::DISCONNECT
              );
          }
  
          if (($read = fgets($this->_stream)) === false) {
              $this->_params['debug']->info('ERROR: read/timeout error.');
              throw new Horde_Imap_Client_Exception(
                  Horde_Imap_Client_Translation::r("Error when communicating with the mail server."),
                  Horde_Imap_Client_Exception::SERVER_READERROR
              );
          }
  
          $this->_params['debug']->server(rtrim($read, "\r\n"));
  
          return $read;
      }
code_tokens: public function read ( $ size = null ) { if ( feof ( $ this -> _stream ) ) { $ this -> close ( ) ; $ this -> _params [ 'debug' ] -> info ( 'ERROR: Server closed the connection.' ) ; throw new Horde_Imap_Client_Exception ( Horde_Imap_Client_Translation :: r ( "Server closed the connection unexpectedly." ) , Horde_Imap_Client_Exception :: DISCONNECT ) ; } if ( ( $ read = fgets ( $ this -> _stream ) ) === false ) { $ this -> _params [ 'debug' ] -> info ( 'ERROR: read/timeout error.' ) ; throw new Horde_Imap_Client_Exception ( Horde_Imap_Client_Translation :: r ( "Error when communicating with the mail server." ) , Horde_Imap_Client_Exception :: SERVER_READERROR ) ; } $ this -> _params [ 'debug' ] -> server ( rtrim ( $ read , "\r\n" ) ) ; return $ read ; }
docstring: Read data from incoming POP3 stream.
  
  @param integer $size  UNUSED: The number of bytes to read from the
  socket.
  
  @return string  Line of data.
  
  @throws Horde_Imap_Client_Exception
docstring_tokens: Read data from incoming POP3 stream .