Fix: Enhance successfull dump detection

This commit is contained in:
Laurent Destailleur 2011-10-20 00:04:57 +02:00
parent a0855a3867
commit 00189f17dc

View File

@ -168,7 +168,8 @@ if ($what == 'mysql')
{
$read = fgets($handlein);
fwrite($handle,$read);
if (preg_match('/-- Dump completed/i',$read)) $ok=1;
if (preg_match('/'.preg_quote('-- Dump completed').'/i',$read)) $ok=1;
elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1;
}
pclose($handlein);