Skip to content

Commit

Permalink
trim breaks sql that spawns several lins, removed. Closes #282
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsnop committed Sep 20, 2024
1 parent 77d9d99 commit 91408c9
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 @@ -299,7 +299,7 @@ public function restore($path)

$buffer = '';
while ( !feof($handle) ) {
$line = trim(fgets($handle));
$line = fgets($handle);

if (substr($line, 0, 2) == '--' || !$line) {
continue; // skip comments
Expand Down

0 comments on commit 91408c9

Please sign in to comment.