Exemple #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;
 }
 public function eof()
 {
     return $this->buffer->eof() && $this->getStream()->eof();
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 public function eof()
 {
     $this->initialize();
     return $this->stream !== null ? $this->stream->eof() : true;
 }