Skip to content

Commit 61d3266

Browse files
committed
Removed extension appended to filename if compression enabled
1 parent 1f6641a commit 61d3266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Ifsnop/Mysqldump/Mysqldump.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public function __construct()
766766

767767
public function open($filename)
768768
{
769-
$this->archiveFilename = $filename . ".bz2";
769+
$this->archiveFilename = $filename;
770770
$this->fileHandler = bzopen($this->archiveFilename, "w");
771771
if (false === $this->fileHandler) {
772772
throw new Exception("Output file is not writable");
@@ -802,7 +802,7 @@ public function __construct()
802802

803803
public function open($filename)
804804
{
805-
$this->archiveFilename = $filename . ".gz";
805+
$this->archiveFilename = $filename;
806806
$this->fileHandler = gzopen($this->archiveFilename, "wb");
807807
if (false === $this->fileHandler) {
808808
throw new Exception("Output file is not writable");

0 commit comments

Comments
 (0)