Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function eof()
 {
     // Always return true if the underlying stream is EOF
     if ($this->stream->eof()) {
         return true;
     }
     // No limit and the underlying stream is not at EOF
     if ($this->limit == -1) {
         return false;
     }
     $tell = $this->stream->tell();
     if ($tell === false) {
         return false;
     }
     return $tell >= $this->offset + $this->limit;
 }
Exemplo n.º 2
0
 public function eof()
 {
     return $this->buffer->eof() && $this->getStream()->eof();
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function eof()
 {
     $this->initialize();
     return $this->stream !== null ? $this->stream->eof() : true;
 }