Skip to content

Commit

Permalink
check for invalid options in dump settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsnop committed Jul 5, 2014
1 parent 125d64b commit 2c50d4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Ifsnop/Mysqldump/Mysqldump.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ public function __construct(
$this->_pdoSettings = self::array_replace_recursive($pdoSettingsDefault, $pdoSettings);
$this->_dumpSettings = self::array_replace_recursive($dumpSettingsDefault, $dumpSettings);

$diff = array_diff(array_keys($this->_dumpSettings), array_keys($dumpSettingsDefault));
if (count($diff)>0) {
throw new Exception("Unexpected value in dumpSettings: (" . implode(",", $diff) . ")\n");
}

}

/**
Expand Down

0 comments on commit 2c50d4f

Please sign in to comment.