php.net |  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
 [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;
                        break;
                    }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-05 01:32 UTC] mj@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 11:01:32 2024 UTC