fix issue #2
authorMichael Wallner <mike@php.net>
Wed, 4 Mar 2015 18:57:58 +0000 (19:57 +0100)
committerMichael Wallner <mike@php.net>
Wed, 4 Mar 2015 18:57:58 +0000 (19:57 +0100)
bin/pharext
src/pharext/PeclSourceDir.php

index 531e2510e18cb147f8f4e5b168f604d604f478ba..9439186529697a6fc84028ece078cbe847c6609b 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
index 3844519d23897ca42c9eef23660cd09e223c9711..ab7174681c7d1fdf1cca8c67f6472ed161f17303 100644 (file)
@@ -30,8 +30,8 @@ class PeclSourceDir implements \IteratorAggregate, SourceDir
         * @see \pharext\SourceDir::__construct()
         */
        public function __construct(Command $cmd, $path) {
-               $sxe = simplexml_load_file("$path/package.xml", null, 0, "http://pear.php.net/dtd/package-2.0");
-               $sxe->registerXPathNamespace("pecl", "http://pear.php.net/dtd/package-2.0");
+               $sxe = simplexml_load_file("$path/package.xml");
+               $sxe->registerXPathNamespace("pecl", $sxe->getDocNamespaces()[""]);
                
                $args = $cmd->getArgs();
                if (!isset($args->name)) {