PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Testing » PHPUnit » Bug #559

go-pear.bat doesn't found PHPUnit while installing

Details

Submitted2004-01-12 15:05 UTC
Frommichael at elfimov dot com
Assignedpajoye
StatusClosed
PackagePHPUnit
PHP Version4.3.4
OSWindows XP
Roadmaps(Not assigned)

Comments

[2004-01-12 15:05 UTC] michael at elfimov dot com

Description:
------------
I tried to install the PEAR packages by the go-pear.bat script
via command shell. While looking for existing packages script go-pear.php
tries to find 'phpUnit' (as on source line 164):

$pfc_packages = array(
'DB',
'Net_Socket',
'Net_SMTP',
'Mail',
'XML_Parser',
'phpUnit'
);

but because of case-sensitivity script can't find distribution file
go-pear-bundle/PHPUnit-1.0.0-alpha2.tgz, and then start tring to download
them.
Required changes: edit $pfc_packages and replace 'phpUnit' with 'PHPUnit'
or make changes around line 590 in go-pear.php:
if (substr($file, 0, strlen($pkg)) == $pkg)
to
if (substr(strtolower($file), 0, strlen($pkg)) == strtolower($pkg))