diff --git a/bundles/InstallBundle/src/Installer.php b/bundles/InstallBundle/src/Installer.php index d38e72b9977..5cdf7bd1b80 100644 --- a/bundles/InstallBundle/src/Installer.php +++ b/bundles/InstallBundle/src/Installer.php @@ -764,7 +764,7 @@ private function insertDatabaseDump(Connection $db, string $file): void $dumpFile = file_get_contents($file); // remove comments in SQL script - $dumpFile = preg_replace("/\s*(?!<\")\/\*[^\*]+\*\/(?!\")\s*/", '', $dumpFile); + $dumpFile = preg_replace("/\s*(?!<\")\/\*(?![!+])[^\*]+\*\/(?!\")\s*/", '', $dumpFile); if (str_contains($file, 'atomic')) { $db->executeStatement($dumpFile);