php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55968 Missing "optional" attribute in package dtd 1.1
Submitted: 2004-01-15 19:11 UTC Modified: 2004-01-25 18:34 UTC
From: jan at horde dot org Assigned: pajoye (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2004-01-15 19:11 UTC] jan at horde dot org
Description:
------------
The attached patch add the missing "optional" to the "dep" element of the package DTD version 1.1. It also changes some single quotes to double quotes.

Reproduce code:
---------------
--- ../cvs/pearweb/public_html/dtd/package-1.1  2003-10-11 02:31:22.000000000 +0200
+++ scripts/package.dtd 2004-01-16 01:10:39.000000000 +0100
@@ -4,7 +4,7 @@
      This is the PEAR package description, version 1.0b3.
      It should be used with the informal public identifier:

-         "-//PHP Group//DTD PEAR Package 1.0b3//EN//XML"
+         "-//PHP Group//DTD PEAR Package 1.1//EN//XML"

      Copyright (c) 1997-2003 The PHP Group

@@ -69,15 +69,15 @@
 <!ELEMENT dir (dir|file|libfile)*>
 <!ATTLIST dir
     name           CDATA              #REQUIRED
-    role           %FileRoles;        'php'
+    role           %FileRoles;        "php"
     baseinstalldir CDATA              #IMPLIED>

 <!ELEMENT file (replace)*>
 <!ATTLIST file
     name           CDATA              #REQUIRED
-    role           %FileRoles;        'php'
-    debug          (na|on|off)        'na'
-    threaded       (na|on|off)        'na'
+    role           %FileRoles;        "php"
+    debug          (na|on|off)        "na"
+    threaded       (na|on|off)        "na"
     format         CDATA              #IMPLIED
     md5sum         CDATA              #IMPLIED
     install-as     CDATA              #IMPLIED
@@ -104,7 +104,8 @@
 <!ATTLIST dep
     type      %DepTypes;      #REQUIRED
     rel       %DepRels;       #IMPLIED
-    version   CDATA           #IMPLIED>
+    version   CDATA           #IMPLIED
+    optional  (yes|no)        "no">

 <!ELEMENT provides EMPTY>
 <!ATTLIST provides



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-25 18:34 UTC] pajoye@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PEAR better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 00:01:32 2024 UTC