#23933 [NEW]: PEAR_Command_Registry::doInfo() needs <provides> section handler
| From: | greg at chiaraquartet dot net | Date: | Sat, 31 May 2003 23:34:53 +0000 |
| Subject: | #23933 [NEW]: PEAR_Command_Registry::doInfo() needs <provides> section handler | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-16866@lists.php.net to get a copy of this message | ||
From: greg at chiaraquartet dot net
Operating system: Windows XP
PHP version: 4.3.2
PHP Bug Type: PEAR related
Bug description: PEAR_Command_Registry::doInfo() needs <provides> section handler
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 bug report at http://bugs.php.net/?id=23933&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23933&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23933&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23933&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23933&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23933&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23933&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23933&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23933&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23933&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23933&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23933&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23933&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23933&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23933&r=gnused