FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18296&edit=1

ID: 18296
Updated by: brett.bieber@gmail.com
Reported By: cweiske at php dot net
Summary: Pyrus: unhelpful debug messages for "invalid
package.xml"
-Status: Open
+Status: Closed
Type: Bug
Package: PEAR
Package Version: SVN
PHP Version: 5.3.5
-Assigned To:
+Assigned To: saltybeagle
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: saltybeagle
Fixed in SVN - see output:

ucommbieber:test bbieber$ pyrus `pwd` install pecl/oauth
Using PEAR installation found at /Users/bbieber/test
Downloading pecl.php.net/oauth

Connected...

PEAR2\Pyrus\Package\Exception: Invalid abstract package
pecl.php.net/oauth
PEAR2\Pyrus\HTTPException: Download of
http://pecl.php.net/get/oauth-1.1.0.phar failed, file does not exist
PEAR2\Pyrus\Package\Exception: Could not download from
"http://pecl.php.net/get/oauth-1.1.0.tgz"
PEAR2\Pyrus\PackageFile\Exception: Invalid package.xml
PEAR2\Pyrus\XMLParser\Exception: Invalid XML document
PEAR2\Pyrus\XMLParser\Exception: Line 0: Element
'{http://pear.php.net/dtd/package-2.0}date': '2008-26-03' is not a valid
value of the atomic type 'xs:date'.


Previous Comments:
------------------------------------------------------------------------

[2011-02-22 15:47:42] cweiske

Description:
------------
The output given by -vvvvvvvvvvvvvvvvvvvv does not help in any way to
diagnose the error in package.xml

Actual result:
--------------
# ../inst/bin/pyrus-5.3.3 -vvvvvvvvvvvvvvvvvvvvvvvvv install pecl/oauth
Pyrus version 2.0.0a2 SHA-1: CA3946A5C2C7DE7CD6ED89CAC7CCC06606E006D3
Using PEAR installation found at /opt/phpfarm/inst/php-5.3.3/pear
used ini_get(extension_dir)
used PHP_BINDIR for bin_dir default
Used /etc/php5/cli/php.ini for php.ini location
Found default user configuration file /root/.pear/pearconfig.xml
Loading configuration for /opt/phpfarm/inst/php-5.3.3/pear
Removing unrecognized configuration value @attributes
Found default user configuration file /root/.pear/pearconfig.xml
Configuration not found for /root/.pear, assuming defaults
Replacing @php_dir@ for config variable paranoia default value "2"
Replacing @default_config_dir@ for config variable paranoia default
value "2"
Downloading pecl.php.net/oauth
Replacing @php_dir@ for config variable download_dir default value
"@php_dir@/downloads"
Replacing @default_config_dir@ for config variable download_dir default
value "@php_dir@/downloads"

Replacing @php_dir@ for config variable username default value ""
Replacing @default_config_dir@ for config variable username default
value ""
Replacing @php_dir@ for config variable password default value ""
Replacing @default_config_dir@ for config variable password default
value ""
Replacing @php_dir@ for config variable download_dir default value
"@php_dir@/downloads"
Replacing @default_config_dir@ for config variable download_dir default
value "@php_dir@/downloads"
Replacing @php_dir@ for config variable username default value ""
Replacing @default_config_dir@ for config variable username default
value ""
Replacing @php_dir@ for config variable password default value ""
Replacing @default_config_dir@ for config variable password default
value ""
Connected...
Mime-type: application/octet-stream

exception 'PEAR2\MultiErrors' with message 'multiple errors found' in
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Channel/RemotePackage.php:337
Stack trace:
#0
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Package/Remote.php(155):
PEAR2\Pyrus\Channel\RemotePackage->download()
#1
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Package.php(192):
PEAR2\Pyrus\Package\Remote->download()
#2
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Installer.php(269):
PEAR2\Pyrus\Package->download()
#3
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/ScriptFrontend/Commands.php(490):
PEAR2\Pyrus\Installer::commit()
#4
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/ScriptFrontend/Commands.php(284):
PEAR2\Pyrus\ScriptFrontend\Commands->install(Array, Array)
#5 /opt/phpfarm/inst/php-5.3.3/pyrus.phar(52):
PEAR2\Pyrus\ScriptFrontend\Commands->run(Array)
#6 {main}

Next exception 'PEAR2\Pyrus\Package\Exception' with message 'Invalid
abstract package pecl.php.net/oauth' in
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Channel/RemotePackage.php:431
Stack trace:
#0
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Package/Remote.php(155):
PEAR2\Pyrus\Channel\RemotePackage->download()
#1
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Package.php(192):
PEAR2\Pyrus\Package\Remote->download()
#2
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/Installer.php(269):
PEAR2\Pyrus\Package->download()
#3
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/ScriptFrontend/Commands.php(490):
PEAR2\Pyrus\Installer::commit()
#4
phar:///opt/phpfarm/inst/php-5.3.3/pyrus.phar/PEAR2_Pyrus-2.0.0a2/php/PEAR2/Pyrus/ScriptFrontend/Commands.php(284):
PEAR2\Pyrus\ScriptFrontend\Commands->install(Array, Array)
#5 /opt/phpfarm/inst/php-5.3.3/pyrus.phar(52):
PEAR2\Pyrus\ScriptFrontend\Commands->run(Array)
#6 {main}PEAR2\Pyrus\Package\Exception: Invalid abstract package
pecl.php.net/oauth
PEAR2\Pyrus\HTTPException: Download of
http://pecl.php.net/get/oauth-1.1.0.phar failed, file does not exist
PEAR2\Pyrus\Package\Exception: Could not download from
"http://pecl.php.net/get/oauth-1.1.0.tgz"
PEAR2\Pyrus\PackageFile\Exception: Invalid package.xml
PEAR2\Pyrus\XMLParser\Exception: Invalid XML document

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 3, '11 at 5:26p
activeMar 3, '11 at 5:26p
posts1
users1
websitepear.php.net

1 user in discussion

Brett Bieber: 1 post

People

Translate

site design / logo © 2022 Grokbase