/** * @inheritdoc */ public function stream_open($path, $mode, $options, &$opened_path) { \PHPExcel_Settings::setCacheStorageMethod(\PHPExcel_CachedObjectStorageFactory::cache_to_sqlite3); $this->objPHPExcel = new \PHPExcel(); $this->sheet = $this->objPHPExcel->getActiveSheet(); $this->offset = 1; return parent::stream_open($path, $mode, $options, $opened_path); }
/** * @inheritdoc */ public function stream_open($path, $mode, $options, &$opened_path) { $this->handle = fopen('php://memory', 'r+'); return parent::stream_open($path, $mode, $options, $opened_path); }