Merge pull request #81 from Fot0n/patch-1

Make it compatible with php 8.1
This commit is contained in:
Győrvári Gábor
2022-09-19 12:51:07 +02:00
committed by GitHub

View File

@@ -622,8 +622,8 @@ class MalwareScanner
private function report($start, $dir)
{
$end = time();
echo 'Start time: ' . strftime('%Y-%m-%d %H:%M:%S', $start) . PHP_EOL;
echo 'End time: ' . strftime('%Y-%m-%d %H:%M:%S', $end) . PHP_EOL;
echo 'Start time: ' . date('Y-m-d H:m:s', $start) . PHP_EOL;
echo 'End time: ' . date('Y-m-d H:m:s', $end) . PHP_EOL;
echo 'Total execution time: ' . ($end - $start) . PHP_EOL;
echo 'Base directory: ' . $dir . PHP_EOL;
echo 'Total directories scanned: ' . $this->stat['directories'] . PHP_EOL;