fix for symlinks
authorMichael Wallner <mike@php.net>
Sat, 28 Mar 2015 07:10:53 +0000 (08:10 +0100)
committerMichael Wallner <mike@php.net>
Sat, 28 Mar 2015 07:10:53 +0000 (08:10 +0100)
src/pharext/SourceDir/Pecl.php

index 188ea67e98f57097f5e382c2a5734eab52bcf2fe..351eaa21eae0b869dcb1cf857d049a4b426c821a 100644 (file)
@@ -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"]);
                }