php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26880 go-pear.bat doesn't found PHPUnit while installing
Submitted: 2004-01-12 08:28 UTC Modified: 2004-01-12 09:57 UTC
From: michael at elfimov dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.4 OS: Windows XP
Private report: No CVE-ID: None
 [2004-01-12 08:28 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))


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-12 09:57 UTC] sniper@php.net
This is wrong place to report PEAR bugs.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 14:00:03 2025 UTC