/** * Closes down the reader. */ public function __destruct() { parent::__destruct(); if ($this->_autoClose === true && $this->_reader !== null) { $this->_reader->close(); } }