PEAR is archived and read-only

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

Home » Configuration » Config » Bug #7354

Recently upgraded my Pear::Config, and after all my applications are crashing..

Details

Submitted2006-04-10 08:04 UTC
Fromlmiranda at gmail dot com
Assignedaashley
StatusBogus
PackageConfig
PHP Version5.0.4
OSOS X 10.3
Roadmaps(Not assigned)

Comments

[2006-04-10 08:04 UTC] lmiranda at gmail dot com

Description:
------------
This is what i posted on the pear-general mailing list.

This is how i upgraded my Config..

pear upgrade -a Config
..
upgrade ok: channel://pear.php.net/Config-1.10.6

Then all my pear::db connections got all this errors.

[Mon Apr 10 15:43:22 2006] [error] PHP Fatal error: Cannot redeclare class config in /usr/lib/php/Config.php on line 43
[Mon Apr 10 15:43:23 2006] [error] PHP Fatal error: Cannot redeclare class config in /usr/lib/php/Config.php on line 43
[Mon Apr 10 15:43:24 2006] [error] PHP Fatal error: Cannot redeclare class config in /usr/lib/php/Config.php on line 43
[Mon Apr 10 15:43:28 2006] [error] PHP Fatal error: Cannot redeclare class config in /usr/lib/php/Config.php on line 43

Good thing i have a copy of the /php/ pear libary last month. And i was able to get all things working again. But, im shocked that all my pear modules just stopped working.

Test script:
---------------
Just a simple connection to the db user PEAR::DB

Expected result:
----------------
Many, it will show all my programs

[2006-04-10 08:11 UTC] lmiranda at gmail dot com

Im sorry, i just found out that i dont have Config on pear modules.
I was using -a for all dependencies.

[2006-04-10 08:12 UTC] lmiranda at gmail dot com

I was able to make all my applications work again. I removed all the Config.php Config/ files and folders.

I think it has a conflict on either the PEAR::DB or the PEAR::Mail that i am using.

I am using the latest PEAR version as of this writing.

[2006-04-18 04:49 UTC] aashley at php dot net

Sorry, but your problem does not imply a bug in PEAR itself. For a
list of more appropriate places to ask for help using PEAR, please
visit http://pear.php.net/support/ as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in PEAR.

I've tried Config against all the packages you mentioned on OSX and there is no problem in any of the PEAR code mentioned. This problem is somewhere in your setup.