Skip to content

Commit

Permalink
Fixed memory exhaustion when dumping large databases. Closes #261 #264.
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsnop committed Mar 18, 2023
1 parent 16f3612 commit ec6a777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ifsnop/Mysqldump/Mysqldump.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function __construct(

// This drops MYSQL dependency, only use the constant if it's defined.
if ("mysql" === $this->dbType) {
$pdoSettingsDefault[PDO::MYSQL_ATTR_USE_BUFFERED_QUERY] = false;
$this->pdoSettingsDefault[PDO::MYSQL_ATTR_USE_BUFFERED_QUERY] = false;
}

$this->pdoSettings = array_replace_recursive($this->pdoSettingsDefault, $pdoSettings);
Expand Down

0 comments on commit ec6a777

Please sign in to comment.