Skip to content

Commit

Permalink
Handle comments
Browse files Browse the repository at this point in the history
INI spec not clear on # vs ; comments. This commit makes them interchangable
  • Loading branch information
joostfaassen committed Jan 7, 2019
1 parent 8be656e commit 6214314
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Backend/IniBackend.php
Expand Up @@ -24,6 +24,7 @@ public function getKeys($path)
return null;
}
$ini = file_get_contents($filename);
$ini = str_replace('#', ';', $ini);
$keys = parse_ini_string($ini);
return $keys;
}
Expand Down

0 comments on commit 6214314

Please sign in to comment.