|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
6 - 5 = ?
Subscribe to this entry?

 [2004-01-15 19:11 UTC] jan at horde dot org
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-25 18:34 UTC]
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

In case this was a 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-2023 The PHP Group
All rights reserved.
Last updated: Mon Sep 25 19:01:25 2023 UTC