@@ 1325-1332 (lines=8) @@ | ||
1322 | $line = $stream->gets(); |
|
1323 | ||
1324 | // Comment lines |
|
1325 | if (preg_match('/^(;.*)$/', $line, $matches)) |
|
1326 | { |
|
1327 | $contents[] = $matches[1] . "\n"; |
|
1328 | } |
|
1329 | else |
|
1330 | { |
|
1331 | break; |
|
1332 | } |
|
1333 | } |
|
1334 | } |
|
1335 | ||
@@ 1353-1356 (lines=4) @@ | ||
1350 | $contents[] = $matches[1] . "\n"; |
|
1351 | } |
|
1352 | // Section lines |
|
1353 | elseif (preg_match('/^\[([^\]]*)\]\s*$/', $line, $matches)) |
|
1354 | { |
|
1355 | $contents[] = "[" . $matches[1] . "]\n"; |
|
1356 | } |
|
1357 | // Key lines |
|
1358 | elseif (preg_match('/^([A-Z][A-Z0-9_\*\-\.]*)\s*=/', $line, $matches)) |
|
1359 | { |