php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59133 package.xml does not validate against schema
Submitted: 2010-03-28 10:40 UTC Modified: 2017-10-24 23:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: cweiske@php.net Assigned:
Status: Suspended Package: scream (PECL)
PHP Version: 5.3.2RC3 OS:
Private report: No CVE-ID: None
 [2010-03-28 10:40 UTC] cweiske@php.net
Description:
------------
Trying to install scream with pyrus shows us that the package.xml file does not validate:

pear2\Pyrus\Package\Exception: Invalid abstract package pecl.php.net/scream
 pear2\Pyrus\HTTPException: Download of http://pecl.php.net/get/scream-0.1.0.phar failed, file does not exist
  pear2\Pyrus\Package\Exception: Could not download from "http://pecl.php.net/get/scream-0.1.0.tgz"
   pear2\Pyrus\PackageFile\Exception: Invalid package.xml
    pear2\Pyrus\XMLParser\Exception: Invalid XML document

Using xmllint with schema validation shows us:
cweiske:~> xmllint --schema http://pear.php.net/dtd/package-2.0.xsd package.xml 
package.xml:11: element active: Schemas validity error : Element '{http://pear.php.net/dtd/package-2.0}active': [facet 'enumeration'] The value 'gopalv' is not an element of the set {'yes', 'no'}.
package.xml:11: element active: Schemas validity error : Element '{http://pear.php.net/dtd/package-2.0}active': 'gopalv' is not a valid value of the local atomic type.
package.xml:17: element active: Schemas validity error : Element '{http://pear.php.net/dtd/package-2.0}active': [facet 'enumeration'] The value 'johannes' is not an element of the set {'yes', 'no'}.
package.xml:17: element active: Schemas validity error : Element '{http://pear.php.net/dtd/package-2.0}active': 'johannes' is not a valid value of the local atomic type.
package.xml:52: element changelog: Schemas validity error : Element '{http://pear.php.net/dtd/package-2.0}changelog': Missing child element(s). Expected is ( {http://pear.php.net/dtd/package-2.0}release ).
package.xml fails to validate


This should be easily fixable.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-11 13:59 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: johannes
 [2017-10-24 06:54 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: johannes +Assigned To:
 [2017-10-24 23:41 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 23:41 UTC] kalle@php.net
The stream package has not had a release since 2009, and its safe to say that development has ceased. In case the development of this package picks back up, then this report should be re-opened.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 11:01:28 2024 UTC