Skip to content

Commit ec6a777

Browse files
committed
Fixed memory exhaustion when dumping large databases. Closes #261 #264.
1 parent 16f3612 commit ec6a777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ifsnop/Mysqldump/Mysqldump.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function __construct(
182182

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

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

0 commit comments

Comments
 (0)