diff --git a/scan.php b/scan.php index cde2ccc..a66a503 100644 --- a/scan.php +++ b/scan.php @@ -511,7 +511,7 @@ class MalwareScanner } if ($this->outputFormat) { - $map = [ + $map = array( '%S' => $state, '%T' => $ctime, '%M' => $hash, @@ -519,9 +519,9 @@ class MalwareScanner '%P' => $pattern, '%C' => $comment, '%L' => $lineNumber, - ]; + ); } else { - $map = [ + $map = array( '%S' => $state_color . '# ' . $state . $this->ANSI_OFF, '%T' => $this->ANSI_BLUE . $ctime . $this->ANSI_OFF, '%M' => $this->ANSI_BLUE . $hash . $this->ANSI_OFF, @@ -529,7 +529,7 @@ class MalwareScanner '%P' => $state_color . '#' . $pattern . $this->ANSI_OFF, '%C' => $this->ANSI_BLUE . $comment . $this->ANSI_OFF, '%L' => $lineNumber, - ]; + ); } if ($this->outputFormat) { @@ -769,7 +769,7 @@ class MalwareScanner } $content = gzdecode(file_get_contents($file)); - $this->combined_whitelist = []; + $this->combined_whitelist = array(); $this->combined_whitelist_count = 0; foreach (explode("\n", $content) as $line) { // faster than strtok, but needs more memory if ($line) {