lib/cms_scanner/target/platform/php.rb in cms_scanner-0.0.41.3 vs lib/cms_scanner/target/platform/php.rb in cms_scanner-0.0.41.4

- old
+ new

@@ -1,10 +1,11 @@ module CMSScanner class Target < WebSite module Platform # Some PHP specific implementation module PHP - DEBUG_LOG_PATTERN = /\[[^\]]+\] PHP (?:Warning|Error|Notice):/.freeze + DEBUG_LOG_PATTERN = /(?:\[\d{2}\-[a-zA-Z]{3}\-\d{4}\s\d{2}\:\d{2}:\d{2}\s[A-Z]{3}\]| + PHP\s(?:Fatal|Warning|Strict|Error|Notice):)/x.freeze FPD_PATTERN = /Fatal error:.+? in (.+?) on/.freeze ERROR_LOG_PATTERN = /PHP Fatal error/i.freeze # @param [ String ] path # @param [ Regexp ] pattern