/** * Rewind the Iterator to the first element * * @return void Any returned value is ignored. */ public function rewind() { $this->headersSent = false; $result = parent::rewind(); $this->fields = $this->getInnerIterator()->getFieldNames(); return $result; }