From: Michael Wallner Date: Wed, 4 Mar 2015 18:57:58 +0000 (+0100) Subject: fix issue #2 X-Git-Tag: v1.0.3~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8a8a71552451bc07865b6666d765d3523c35622d;p=pharext%2Fpharext fix issue #2 --- diff --git a/bin/pharext b/bin/pharext index 531e251..9439186 100755 Binary files a/bin/pharext and b/bin/pharext differ diff --git a/src/pharext/PeclSourceDir.php b/src/pharext/PeclSourceDir.php index 3844519..ab71746 100644 --- a/src/pharext/PeclSourceDir.php +++ b/src/pharext/PeclSourceDir.php @@ -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)) {