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 » Configuration » Config » Bug #9632

PHPConstants missing

Details

Submitted2006-12-15 21:34 UTC
Fromneverpanic at gmail dot com
Assignedaashley
StatusClosed
PackageConfig
PHP VersionIrrelevant
OSDebian Sarge
Roadmaps(Not assigned)

Comments

[2006-12-15 21:34 UTC] neverpanic at gmail dot com

Description:
------------
The PHPConstants Container fails, because PHPContants is not registered in $_GLOBALS['CONFIG_TYPES'].
Adding
'phpconstants'=>array('Config/Container/PHPConstants.php','Config_Container_PHPConstants'),
to Config.php fixes this problem.

Test script:
---------------
print_r($this->config->writeConfig(CONFIG_PATH.'config.php', 'PHPConstants', array('name' => 'test')));

Expected result:
----------------
1

Actual result:
--------------
PEAR::Error, phpconstants is not a registered container type

[2006-12-22 00:35 UTC] aashley at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.