FIX Avoid to return an error due to mysql warning

This commit is contained in:
Laurent Destailleur 2016-02-22 09:32:42 +01:00
parent e7e6957073
commit 6181ab4149

View File

@ -201,6 +201,7 @@ if ($what == 'mysql')
while (!feof($handlein))
{
$read = fgets($handlein);
if (preg_match('/'.preg_quote('Warning: Using a password').'/i', $read)) continue;
fwrite($handle,$read);
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;