From e8a5f7bb7babd1dfc0d8bff3d98dd6a4751d1bf4 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 28 Mar 2015 08:10:53 +0100 Subject: [PATCH] fix for symlinks --- src/pharext/SourceDir/Pecl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]); } -- 2.30.2