From: Michael Wallner Date: Sat, 28 Mar 2015 07:10:53 +0000 (+0100) Subject: fix for symlinks X-Git-Tag: v3.0.0~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e8a5f7bb7babd1dfc0d8bff3d98dd6a4751d1bf4;p=pharext%2Fpharext fix for symlinks --- diff --git a/src/pharext/SourceDir/Pecl.php b/src/pharext/SourceDir/Pecl.php index 188ea67..351eaa2 100644 --- a/src/pharext/SourceDir/Pecl.php +++ b/src/pharext/SourceDir/Pecl.php @@ -46,7 +46,7 @@ class Pecl implements \IteratorAggregate, SourceDir $sxe->registerXPathNamespace("pecl", $sxe->getDocNamespaces()[""]); $this->sxe = $sxe; - $this->path = $path; + $this->path = realpath($path); } /** @@ -148,7 +148,7 @@ class Pecl implements \IteratorAggregate, SourceDir } /* files */ - yield $this->file; + yield realpath($this->file); foreach ($this->sxe->xpath("//pecl:file") as $file) { yield realpath($this->path ."/". $this->dirOf($file) ."/". $file["name"]); }