Home » Configuration » Config » Bug #9632
PHPConstants missing
Details
| Submitted | 2006-12-15 21:34 UTC |
|---|---|
| From | neverpanic at gmail dot com |
| Assigned | aashley |
| Status | Closed |
| Package | Config |
| PHP Version | Irrelevant |
| OS | Debian 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.