@@ 49-51 (lines=3) @@ | ||
46 | if (preg_match('/(?P<key>\w+)\s+(?P<value>[^;]+);/', trim($directive), $matches)) { |
|
47 | $parsedActiveConfig[$line] = new Directive($matches['key'], $matches['value']); |
|
48 | } |
|
49 | if (preg_match('/(?P<key>\w+)\s+(?P<value>[^\s{+])\s*{/', trim($directive), $matches)) { |
|
50 | $parsedActiveConfig[$line] = ['block directive', [$matches['key'] => $matches['value']]]; |
|
51 | } |
|
52 | if (preg_match('/(?P<key>\w+)\s*{/', trim($directive), $matches)) { |
|
53 | $parsedActiveConfig[$line] = ['context', $matches['key']]; |
|
54 | } |
|
@@ 52-54 (lines=3) @@ | ||
49 | if (preg_match('/(?P<key>\w+)\s+(?P<value>[^\s{+])\s*{/', trim($directive), $matches)) { |
|
50 | $parsedActiveConfig[$line] = ['block directive', [$matches['key'] => $matches['value']]]; |
|
51 | } |
|
52 | if (preg_match('/(?P<key>\w+)\s*{/', trim($directive), $matches)) { |
|
53 | $parsedActiveConfig[$line] = ['context', $matches['key']]; |
|
54 | } |
|
55 | } |
|
56 | ||
57 | return $parsedActiveConfig; |
@@ 52-54 (lines=3) @@ | ||
49 | if (preg_match('/^<\/If(Module|Define)>/i', $directive, $matches)) { |
|
50 | $parsedActiveConfig[$line] = ['end module section']; |
|
51 | } |
|
52 | if (preg_match('/^<(((Directory|Files|Location)(Match)?)|VirtualHost)/i', $directive, $matches)) { |
|
53 | $parsedActiveConfig[$line] = ['scope section', $matches[2]]; |
|
54 | } |
|
55 | if (preg_match('/^<\/(((Directory|Files|Location)(Match)?)|VirtualHost)/i', $directive, $matches)) { |
|
56 | $parsedActiveConfig[$line] = ['end scope section']; |
|
57 | } |