Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Invalid XML document: zendextsrcrelease with xdebug 2.2.2 #128

Open
cweiske opened this issue Jun 10, 2013 · 8 comments
Open

Invalid XML document: zendextsrcrelease with xdebug 2.2.2 #128

cweiske opened this issue Jun 10, 2013 · 8 comments

Comments

@cweiske
Copy link
Contributor

cweiske commented Jun 10, 2013

xdebug 2.2.2 cannot be installed because pyrus doesn't like the zendextsrcrelease element in the package.xml:

$ pyrus-5.3.26 install pecl/xdebug
Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Using PEAR installation found at /opt/phpfarm/inst/php-5.3.26/pear
Downloading pecl.php.net/xdebug
Mime-type: application/octet-stream
Mime-type: application/octet-stream==================================================================>] 100% (244/244 kb)
Pyrus\Package\Exception: Could not download abstract package pecl.php.net/xdebug
 Pyrus\HTTPException: Download of http://pecl.php.net/get/xdebug-2.2.2.phar failed, file does not exist
  Pyrus\Package\Exception: Could not download from "http://pecl.php.net/get/xdebug-2.2.2.tgz"
   Pyrus\PackageFile\Exception: Invalid package.xml
    Pyrus\XMLParser\Exception: Invalid XML document
     Pyrus\XMLParser\Exception: Line 0: Element '{http://pear.php.net/dtd/package-2.0}zendextsrcrelease': This element is not expected. Expected is one of ( {http://pear.php.net/dtd/package-2.0}providesextension, {http://pear.php.net/dtd/package-2.0}usesrole, {http://pear.php.net/dtd/package-2.0}usestask, {http://pear.php.net/dtd/package-2.0}srcpackage, {http://pear.php.net/dtd/package-2.0}srcuri, {http://pear.php.net/dtd/package-2.0}phprelease, {http://pear.php.net/dtd/package-2.0}extsrcrelease, {http://pear.php.net/dtd/package-2.0}extbinrelease, {http://pear.php.net/dtd/package-2.0}bundle ).

      Pyrus\Package\Exception: Could not download from "http://pecl.php.net/get/xdebug-2.2.2.tar"
       Pyrus\PackageFile\Exception: Invalid package.xml
        Pyrus\XMLParser\Exception: Invalid XML document
         Pyrus\XMLParser\Exception: Line 0: Element '{http://pear.php.net/dtd/package-2.0}zendextsrcrelease': This element is not expected. Expected is one of ( {http://pear.php.net/dtd/package-2.0}providesextension, {http://pear.php.net/dtd/package-2.0}usesrole, {http://pear.php.net/dtd/package-2.0}usestask, {http://pear.php.net/dtd/package-2.0}srcpackage, {http://pear.php.net/dtd/package-2.0}srcuri, {http://pear.php.net/dtd/package-2.0}phprelease, {http://pear.php.net/dtd/package-2.0}extsrcrelease, {http://pear.php.net/dtd/package-2.0}extbinrelease, {http://pear.php.net/dtd/package-2.0}bundle ).

          Pyrus\HTTPException: Download of http://pecl.php.net/get/xdebug-2.2.2.zip failed, file does not exist

@rodfersou
Copy link

the problem looks to be the extension.. it looks for .zip file instead of .tgz file...

@cweiske
Copy link
Contributor Author

cweiske commented Dec 31, 2013

@rodfersou: no. It tries different extensions if the first downloaded is invalid.

@rodfersou
Copy link

@cweiske but I if I open the link http://pecl.php.net/get/xdebug-2.2.2.tgz the download happen fine..

@rodfersou
Copy link

@cweiske the fallback is not working...

@cweiske
Copy link
Contributor Author

cweiske commented Dec 31, 2013

It tries the tgz, downloads it, unpacks it, sees that the xml is broken.

Then it falls back to the .zip (which does not exist on pear.php.net/pecl.php.net) - that is ok.

The root cause is the XML error. This is the problem.

@rodfersou
Copy link

@cweiske got it..

@rsennewald
Copy link

Hi guys, I'm still seeing this problem when trying to install xdebug from pyrus and it seems this has been open for years. Is there any work around for this?

@rodfersou
Copy link

+1 we should focus on the soluction, not the on the problem..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants