public function __construct($filename, $mode = 'r') { parent::__construct($filename, $mode); $this->filename = $this->getRealPath(); }