|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24920 <license> in changelog overwrites license in getInfoFromString()
Submitted: 2003-08-02 13:14 UTC Modified: 2003-08-04 05:33 UTC
From: greg at chiaraquartet dot net Assigned: cox (profile)
Status: Closed Package: PEAR related
PHP Version: 4.3.2 OS: na
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: greg at chiaraquartet dot net
New email:
PHP Version: OS:


 [2003-08-02 13:14 UTC] greg at chiaraquartet dot net
if the last changelog entry has a <license> entry that differs from the release license, PEAR_Common->getInfoFromString() will return the license as the changelog entry rather than the current release license.

Either the DTD should be updated to reflect the validation in PEAR_Common, or PEAR_Common should use this patch to retrieve the license tag in the changelog:

Index: pear/PEAR/Common.php
RCS file: /repository/php-src/pear/PEAR/Common.php,v
retrieving revision 1.93
diff -u -r1.93 Common.php
--- pear/PEAR/Common.php	12 Jul 2003 15:15:38 -0000	1.93
+++ pear/PEAR/Common.php	2 Aug 2003 18:12:54 -0000
@@ -567,7 +578,11 @@
             case 'license':
-                $this->pkginfo['release_license'] = $data;
+                if ($this->in_changelog) {
+                    $this->current_release['release_license'] = $data;
+                } else {
+                    $this->pkginfo['release_license'] = $data;
+                }
             case 'dep':
                 if ($data && !$this->in_changelog) {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-04 05:33 UTC]
Thanks Greg, fixed in CVS
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Dec 04 07:03:33 2021 UTC