Fix infinit logs

This commit is contained in:
Laurent Destailleur 2022-03-10 15:46:00 +01:00
parent 3ea9c297ea
commit 5d942c9d1a

View File

@ -292,6 +292,7 @@ class Utils
dol_syslog("Run command ".$fullcommandcrypted);
$handlein = popen($fullcommandclear, 'r');
$i=0;
if ($handlein) {
while (!feof($handlein))
{
$i++; // output line number
@ -303,6 +304,7 @@ class Utils
elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1;
}
pclose($handlein);
}
if ($compression == 'none') fclose($handle);
if ($compression == 'gz') gzclose($handle);