original_string: final public function read($byte_count=null)
      {
  
          $buffer = '';
          $read = array($this->socket);
  
          $updated = @stream_select($read, $write, $except, 1);
  
          if ($updated > 0) {
              $data = fread($this->socket, 4096);
              if($data) {
                     $buffer = $data;
              }
  
          }
  
          if(!empty($buffer)){
              $this->log('RECEIVED: '.$buffer);
          }
  
          return $buffer;
      }
code: final public function read($byte_count=null)
      {
  
          $buffer = '';
          $read = array($this->socket);
  
          $updated = @stream_select($read, $write, $except, 1);
  
          if ($updated > 0) {
              $data = fread($this->socket, 4096);
              if($data) {
                     $buffer = $data;
              }
  
          }
  
          if(!empty($buffer)){
              $this->log('RECEIVED: '.$buffer);
          }
  
          return $buffer;
      }
code_tokens: final public function read ( $ byte_count = null ) { $ buffer = '' ; $ read = array ( $ this -> socket ) ; $ updated = @ stream_select ( $ read , $ write , $ except , 1 ) ; if ( $ updated > 0 ) { $ data = fread ( $ this -> socket , 4096 ) ; if ( $ data ) { $ buffer = $ data ; } } if ( ! empty ( $ buffer ) ) { $ this -> log ( 'RECEIVED: ' . $ buffer ) ; } return $ buffer ; }
docstring: Reads from the socket, should be protected but can't because this is inherited as public
  
  @return string The buffer data read from the socket
docstring_tokens: Reads from the socket should be protected but can t because this is inherited as public