From 91408c95b54ac2ce10ae6f34f18fa52934cf1410 Mon Sep 17 00:00:00 2001 From: Diego Torres Date: Fri, 20 Sep 2024 03:53:49 +0200 Subject: [PATCH] trim breaks sql that spawns several lins, removed. Closes #282 --- src/Ifsnop/Mysqldump/Mysqldump.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ifsnop/Mysqldump/Mysqldump.php b/src/Ifsnop/Mysqldump/Mysqldump.php index acf9d52..106e1dc 100644 --- a/src/Ifsnop/Mysqldump/Mysqldump.php +++ b/src/Ifsnop/Mysqldump/Mysqldump.php @@ -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