aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-11-05 11:22:39 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-11-05 11:22:39 +0100
commit69643a62e1fa88f4e220e464a61b2003b4f50114 (patch)
tree5a09b362caa108c02018c307a2c2caba8fdba6b3 /src
parentcfafadcedb14e31eb58d55fb052a24b30af468c6 (diff)
downloadphorkie-69643a62e1fa88f4e220e464a61b2003b4f50114.tar.gz
phorkie-69643a62e1fa88f4e220e464a61b2003b4f50114.zip
work around PHP bug #68347: parse ini files in raw mode
Diffstat (limited to 'src')
-rw-r--r--src/phorkie/Repository/ConnectionInfo.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/phorkie/Repository/ConnectionInfo.php b/src/phorkie/Repository/ConnectionInfo.php
index ce96c3e..501f7d0 100644
--- a/src/phorkie/Repository/ConnectionInfo.php
+++ b/src/phorkie/Repository/ConnectionInfo.php
@@ -10,7 +10,10 @@ class Repository_ConnectionInfo
public function __construct(Repository $repo)
{
$this->repo = $repo;
- $this->arConfig = parse_ini_file($this->repo->gitDir . '/config', true);
+ //we need raw parsing; https://bugs.php.net/bug.php?id=68347
+ $this->arConfig = parse_ini_file(
+ $this->repo->gitDir . '/config', true, INI_SCANNER_RAW
+ );
}
public function isFork()