|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23933 PEAR_Command_Registry::doInfo() needs <provides> section handler
Submitted: 2003-05-31 18:34 UTC Modified: 2003-06-05 01:32 UTC
From: greg at chiaraquartet dot net Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.2 OS: Windows XP
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:
44 + 45 = ?
Subscribe to this entry?

 [2003-05-31 18:34 UTC] greg at chiaraquartet dot net
pear info XXX where XXX is a valid, installed package (or .tgz, etc.) does a whole bunch of array to string conversion because there is no handler for the Provides section.  I would suggest only listing classes, as in this code:

                    case 'provides' : {
                        // only list provided classes
                        $result = 'Classes: ';
                        foreach($info[$key] as $program_element) {
                            if ($program_element['type'] == 'class') {
                                if ($result != 'Classes: ') {
                                    $result .= ', ';
                                $result .= $program_element['name'];
                        $info[$key] = $result;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-05 01:32 UTC]
This bug has been fixed in CVS.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 15:03:33 2021 UTC