@@ 579-582 (lines=4) @@ | ||
576 | } |
|
577 | } |
|
578 | ||
579 | if (preg_match('/Action: (.+)/i', $dsn_report, $match)) { |
|
580 | $action = strtolower(trim($match[1])); |
|
581 | $result['action'] = $action; |
|
582 | } |
|
583 | ||
584 | if (preg_match("/Status: ([0-9\.]+)/i", $dsn_report, $match)) { |
|
585 | $status_code = $match[1]; |
|
@@ 584-587 (lines=4) @@ | ||
581 | $result['action'] = $action; |
|
582 | } |
|
583 | ||
584 | if (preg_match("/Status: ([0-9\.]+)/i", $dsn_report, $match)) { |
|
585 | $status_code = $match[1]; |
|
586 | $result['status_code'] = $status_code; |
|
587 | } |
|
588 | ||
589 | // Could be multi-line , if the new line is beginning with SPACE or HTAB |
|
590 | if (preg_match("/Diagnostic-Code:((?:[^\n]|\n[\t ])+)(?:\n[^\t ]|$)/i", $dsn_report, $match)) { |