From 24c3d0bd49444e3d30569fc8228549d0719ddcae Mon Sep 17 00:00:00 2001 From: edoardottt Date: Sat, 26 Mar 2022 17:55:19 +0100 Subject: [PATCH 1/2] update errora --- scanner/errors.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scanner/errors.go b/scanner/errors.go index bc64c17..182a645 100644 --- a/scanner/errors.go +++ b/scanner/errors.go @@ -49,10 +49,14 @@ func GetErrorRegexes() []Error { []string{ `(?i)php warning`, `(?i)php error`, + `(?i)Fatal error`, `(?i)include_path`, `(?i)undefined index`, `(?i)undefined variable`, - `(?i)expect(s*) parameter [A-Za-z0-9-_]{1,30}`}, + `(?i)expect(s*) parameter [A-Za-z0-9-_]{1,30}`, + `(?i)Call to undefined method`, + `(?i)failed to open stream`, + `(?i)safe mode restriction in effect`}, }, { "General error", From 05769f555cdc6ea4e244532236ff77bae7c7187e Mon Sep 17 00:00:00 2001 From: edoardottt Date: Sat, 26 Mar 2022 17:57:21 +0100 Subject: [PATCH 2/2] update errors --- scanner/errors.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scanner/errors.go b/scanner/errors.go index 182a645..ca3db98 100644 --- a/scanner/errors.go +++ b/scanner/errors.go @@ -49,13 +49,15 @@ func GetErrorRegexes() []Error { []string{ `(?i)php warning`, `(?i)php error`, - `(?i)Fatal error`, + `(?i)fatal error`, `(?i)include_path`, `(?i)undefined index`, `(?i)undefined variable`, `(?i)expect(s*) parameter [A-Za-z0-9-_]{1,30}`, - `(?i)Call to undefined method`, + `(?i)call to undefined method`, `(?i)failed to open stream`, + `(?i)cannot modify header information`, + `(?i)(syntax|parse) error`, `(?i)safe mode restriction in effect`}, }, {