PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR_Info » Bug #3380

PEAR_Info conflicts with Config

Details

Submitted2005-02-04 17:27 UTC
Fromrhale at efn dot org
StatusBogus
PackagePEAR_Info
PHP Version5.0.3
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-02-04 17:27 UTC] rhale at efn dot org

Description:
------------
If I have the Config package installed, I am unable to use PEAR_Info. If I uninstall the Config package, PEAR_Info works fine. There seems to be a conflict between the Config.php used by PEAR_Info and the Config.php installed by Config.

I'm not sure if this is a bug in Config or PEAR_Info.

Reproduce code:
---------------
require_once 'PEAR/Info.php';

// If you need to set a http_proxy uncomment the line below
// PEAR_Info::setProxy('your.proxy.here');

// Create PEAR_Info object
$info = new PEAR_Info();

// Display PEAR_Info output
$info->show();

Expected result:
----------------
I expect to see the PEAR_Info output.

Actual result:
--------------
I get the message "Fatal error: Class 'PEAR_Config' not found in C:\apache2triad\php\pear\PEAR\Info.php on line 41".

[2005-12-19 13:23 UTC] mike at 323inc dot com

I also get a similar error...

Fatal error: Cannot instantiate non-existent class:
pear_config in /usr/local/php/lib/php/PEAR/Info.php on line 41

I am running php 4.3.11 on MAc OS X using the entropy.ch build
of php done by Marc

Any idea where I should look to fix this?