src/core/framework/core/3rdparty/ezcomponents/Mail/src/transports/smtp/smtp_transport.php
protected function getData()
    {
        $data = '';
        $line   = '';
        $loops  = 0;

        if ( is_resource( $this->connection ) )
        {
            while ( ( strpos( $data, self::CRLF ) === false || (string) substr( $line, 3, 1 ) !== ' ' ) && $loops < 100 )
            {
                $line = fgets( $this->connection, 512 );
                $data .= $line;
                $loops++;
            }
            return $data;
        }
        throw new ezcMailTransportSmtpException( 'Could not read from SMTP stream. It was probably terminated by the host.' );
    }
protected function getData()
    {
        $data = '';
        $line   = '';
        $loops  = 0;

        if ( is_resource( $this->connection ) )
        {
            while ( ( strpos( $data, self::CRLF ) === false || (string) substr( $line, 3, 1 ) !== ' ' ) && $loops < 100 )
            {
                $line = fgets( $this->connection, 512 );
                $data .= $line;
                $loops++;
            }
            return $data;
        }
        throw new ezcMailTransportSmtpException( 'Could not read from SMTP stream. It was probably terminated by the host.' );
    }
protected function getData ( ) { $ data = '' ; $ line = '' ; $ loops = 0 ; if ( is_resource ( $ this -> connection ) ) { while ( ( strpos ( $ data , self :: CRLF ) === false || ( string ) substr ( $ line , 3 , 1 ) !== ' ' ) && $ loops < 100 ) { $ line = fgets ( $ this -> connection , 512 ) ; $ data .= $ line ; $ loops ++ ; } return $ data ; } throw new ezcMailTransportSmtpException ( 'Could not read from SMTP stream. It was probably terminated by the host.' ) ; }
Returns data received from the connection stream.

@throws ezcMailTransportSmtpException
if there is no valid connection
@return string
Returns data received from the connection stream .