Skip to content

Commit

Permalink
Do not close resource (#4)
Browse files Browse the repository at this point in the history
* Do not close resource

related to a memory-issue in the zip Adapter

* Update JackrabbitPlugin.php
  • Loading branch information
wachterjohannes authored Jan 8, 2021
1 parent 16fd883 commit a6002b2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/JackrabbitPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public function backup(Filesystem $source, Filesystem $destination, Database $da
$tempfile = $this->temporaryFileSystem->createTemporaryFile('jackrabbit');
$stream = fopen($tempfile, 'w+');
$this->export($this->getSession($parameter), $parameter['path'], $stream);
fclose($stream);

$destination->writeStream('export.xml', fopen($tempfile, 'r'));
}
Expand Down

0 comments on commit a6002b2

Please sign in to comment.