#23933 [Opn->Csd]: PEAR_Command_Registry::doInfo() needs <provides> section handler

From: Date: Thu, 05 Jun 2003 06:32:28 +0000
Subject: #23933 [Opn->Csd]: PEAR_Command_Registry::doInfo() needs <provides> section handler
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17034@lists.php.net to get a copy of this message
ID: 23933 Updated by: mj@php.net Reported By: greg at chiaraquartet dot net -Status: Open +Status: Closed Bug Type: PEAR related Operating System: Windows XP PHP Version: 4.3.2 New Comment: This bug has been fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2003-05-31 18:34:53] 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; } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23933&edit=1

« previous php.pear.dev (#17034) next »