- $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()[""]);