php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58446 PECL remote-list returns corrupt XML
Submitted: 2008-12-05 19:13 UTC Modified: 2008-12-06 05:52 UTC
From: lathspell@php.net Assigned:
Status: Duplicate Package: PECL website (PECL)
PHP Version: 5.2.5 OS: Debian testing
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lathspell@php.net
New email:
PHP Version: OS:

 

 [2008-12-05 19:13 UTC] lathspell@php.net
Description:
------------
Hello

My "pecl remote-list" output shows only about 15 packages.

I debugged it by inserting some print() into PEAR/REST/11.php and got the below output:

...
WARNING: Invalid xml downloaded from "http://pecl.php.net/rest/c/System/packagesinfo.xml": XML Error: 'Reserved XML Name' on line '30'
WARNING empty category http://pecl.php.net/rest/c/Testing/packagesinfo.xml
WARNING: Invalid xml downloaded from "http://pecl.php.net/rest/c/Text/packagesinfo.xml": XML Error: 'Reserved XML Name' on line '8'
WARNING: Invalid xml downloaded from "http://pecl.php.net/rest/c/Tools+and+Utilities/packagesinfo.xml": XML Error: 'Reserved XML Name' on line '8'
WARNING empty category http://pecl.php.net/rest/c/Validate/packagesinfo.xml
DEBUG downloaded http://pecl.php.net/rest/c/Version+Control/packagesinfo.xml
DEBUG package svn
WARNING: Invalid xml downloaded from "http://pecl.php.net/rest/c/Web+Services/packagesinfo.xml": XML Error: 'Reserved XML Name' on line '91'
WARNING: Invalid xml downloaded from "http://pecl.php.net/rest/c/XML/packagesinfo.xml": XML Error: 'Reserved XML Name' on line '17'


So it seems that the server side is sending bogus data?

The mentioned XML files indeed contain either no packages at all or more than one <xml version="1.0"> tag which is invalid.

bye,

-christian-

Reproduce code:
---------------
# diff PEAR/REST/11.php ~ch/11.php 
69a71
>                 print("WARNING: ".$packagesinfo->getMessage()."\n");
73a76
>                 print("WARNING empty category ".$base."c/".urlencode($category)."/packagesinfo.xml\n");


Then "pecl remote-list"

Expected result:
----------------
*All* available packages

Actual result:
--------------
$ pecl remote-list

Channel pecl.php.net Available packages:
========================================
Package     Version
APC         3.0.19
memcache    2.2.4
hidef       -n/a-
libevent    -n/a-
WinBinder   -n/a-
win32std    -n/a-
tk          -n/a-
pecl_http   1.6.2
txforward   1.0.5
Bitset      1.0
openal      -n/a-
oggvorbis   -n/a-
zlib_filter 1.1
bz2_filter  1.1.0
SCA_SDO     1.1.0
svn         -n/a-


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-06 05:52 UTC] daniel dot oconnor at gmail dot com
Bug #15254
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC