Compare commits

...

1 Commits
12.0.1 ... 6.0

Author SHA1 Message Date
Laurent Destailleur
5d942c9d1a Fix infinit logs 2022-03-10 15:46:00 +01:00

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);