php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56744 package.xml (2.0) does not validate with more than 1 <release> in <changelog>
Submitted: 2005-12-23 05:29 UTC Modified: 2006-01-28 18:55 UTC
From: erik-pear at 29a dot nl Assigned: cellog (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2005-12-23 05:29 UTC] erik-pear at 29a dot nl
Description:
------------
The package.xml file (version 2.0) does not validate against the current schema (http://pear.php.net/dtd/package-2.0.xsd) if you have more than one <release> child in the <changelog> section. This is also the case with the example file on http://pear.php.net/manual/en/guide.developers.package2.php so I guess the problem lies in the schema.

Test script:
---------------
Just try the demo package file on http://pear.php.net/manual/en/guide.developers.package2.php. 

Possible solution:

I'm not an expert with XSD and I have not tested this, but I guess line 409:

<xs:element name="release">

should be changed to:

<xs:element name="release" minOccurs="1" maxOccurs="unbounded">

In the xsd on http://pear.php.net/dtd/package-2.0.xsd.

Expected result:
----------------
No validation errors

Actual result:
--------------
Validation error on the second <release> element in the <changelog> section (line 220 in the example file).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-28 18:55 UTC] cellog@php.net
This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 14:01:29 2024 UTC