php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48979 pear2\\Pyrus\\XMLParser\\Exception: Invalid XML document in phar
Submitted: 2009-07-19 22:03 UTC Modified: 2009-07-19 22:49 UTC
From: troelskn at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.3.0 OS: linux
Private report: No CVE-ID: None
 [2009-07-19 22:03 UTC] troelskn at gmail dot com
Description:
------------
I have the current version of pyrus from http://svn.pear.php.net/PEAR2/all
When I run pyrus.phar, I get an error.


Reproduce code:
---------------
tkn@tkn-laptop ~ $ /usr/local/src/pear2-svn/PEAR2/Pyrus/pyrus.phar
Pyrus version 2.0.0a1 SHA-1: C9AA2DD926908265A2A5AE96542E9E0CD1071F81
Using PEAR installation found at /home/tkn/pyrus
Unable to add all custom roles/tasks/commands: pear2\Pyrus\XMLParser\Exception: Invalid XML document in phar:///usr/local/src/pear2-svn/PEAR2/Pyrus/pyrus.phar/PEAR2_Pyrus-2.0.0a1/php/pear2/Pyrus/XMLParser.php on line 80
 pear2\Pyrus\XMLParser\Exception: Line 1: Extra content at the end of the document
 in phar:///usr/local/src/pear2-svn/PEAR2/Pyrus/pyrus.phar/PEAR2_Pyrus-2.0.0a1/php/pear2/Pyrus/XMLParser.php on line 80
#0 phar:///usr/local/src/pear2-svn/PEAR2/Pyrus/pyrus.phar/PEAR2_Pyrus-2.0.0a1/php/pear2/Pyrus/XMLParser.php(80): pear2\Pyrus\XMLParser->_parse('/home/tkn/.pear...', 'phar:///usr/loc...', true)
#1 phar:///usr/local/src/pear2-svn/PEAR2/Pyrus/pyrus.phar/PEAR2_Pyrus-2.0.0a1/php/pear2/Pyrus/PluginRegistry.php(92): pear2\Pyrus\XMLParser->parse('/home/tkn/.pear...', 'phar:///usr/loc...')
#2 phar:///usr/local/src/pear2-svn/PEAR2/Pyrus/pyrus.phar/PEAR2_Pyrus-2.0.0a1/php/pear2/Pyrus/ScriptFrontend/Commands.php(246): pear2\Pyrus\PluginRegistry->scan()
#3 /usr/local/src/pear2-svn/PEAR2/Pyrus/pyrus.phar(37): pear2\Pyrus\ScriptFrontend\Commands->run(Array)
#4 {main}

Pyrus, the installer for PEAR2

Usage:
  php pyrus [/path/to/pear] [options]
  php pyrus [/path/to/pear] [options] <command> [options] [args]

...snip...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-19 22:49 UTC] troelskn at gmail dot com
I\'ve forwarded this issue to pear-dev instead.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 03:00:03 2025 UTC