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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: greg at chiaraquartet dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-05 01:32 UTC] mj@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 09:01:35 2025 UTC