PEAR is archived and read-only

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

Home » Configuration » Config

Your configuration's swiss-army knife.

This package is unmaintained.

Download latest release 1.10.12 (archived versions might be outdated)

License: PHP License

Description

The Config package provides methods for configuration manipulation.
* Creates configurations from scratch
* Parses and outputs different formats (XML, PHP, INI, Apache...)
* Edits existing configurations
* Converts configurations to other formats
* Allows manipulation of sections, comments, directives...
* Parses configurations into a tree structure
* Provides XPath like access to directives

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#132ClosedBug2003-10-21Config/Container/IniFile.php stumbles over directives containing %
#370BogusBug2003-12-06Numeric arrays in XML files generate Errors
#378ClosedBug2003-12-08INI files should not have root [] when writing config
#860ClosedBug2004-02-26PEAR QA: improvement for get_class()-usage
#920ClosedBug2004-02-27PHP warning about array_splice
#1260DuplicateBug2004-04-22[patch] INI file without sections
#1323ClosedBug2004-05-01XML Config file parser doesn't use 'encoding' option
#1450DuplicateBug2004-05-20case sensitive in_array()
#1469DuplicateBug2004-05-22case sensetive get_class()
#1503Wont fixBug2004-05-26XML parsing fail on complex element
#1556DuplicateBug2004-06-04PHPArray Containers writes PHP Files without PHP Tags
#1633ClosedBug2004-06-14Container::writeDatasrc() - check for methods case-sensitive w/ Patch
#1785ClosedBug2004-07-04php notice in IniCommented
#1865ClosedReq2004-07-13How about a Config_Container::getDirective() method?
#1877ClosedReq2004-07-14XML not well formed
#2013ClosedBug2004-07-29Problems loading/saving XML
#2014ClosedReq2004-07-29use CDATA
#2049ClosedBug2004-08-04static $deep in Config_Container_XML::toString() causes big indents
#2065ClosedBug2004-08-05Problems with ' when writing PHPArray config in file
#2071ClosedBug2004-08-05unexpected results when reading XML config file and then writing it as PHPArra
#2179ClosedBug2004-08-20parse_ini_file and tildes
#2439ClosedBug2004-10-04Config_Container countChildren() returns Object when 0 children exist
#2738ClosedBug2004-11-11Deps on XML package should be optional
#2742ClosedBug2004-11-12missing trim on result array key
#2780BogusBug2004-11-17Cannot re-assign $this in Container.php
#2951BogusBug2004-12-12segmentation fault caused by unnecesary require
#2962BogusBug2004-12-13test
#3051BogusBug2004-12-29trying to getItem('directive') always return the last one
#3137ClosedBug2005-01-08saving in phparray after adding a comment
#3298ClosedBug2005-01-26Processing XML to array and then back to XML
#3329ClosedBug2005-01-30RE: Bug 2742 - not fixed in CVS
#3398ClosedBug2005-02-07Bug in Quote and Comma Parser for IniCommented
#3446ClosedReq2005-02-12Use better ini parser, please
#3544Wont fixReq2005-02-21Proper Container system usage
#3561BogusBug2005-02-23numeric keys in arrays
#3590ClosedBug2005-02-25Error when using config to load a php array
#3780ClosedBug2005-03-11PHPArray: no addslashes at array-keys
#4477ClosedBug2005-05-30fatal error when key of array is longer than 114 chars
#4623ClosedBug2005-06-18Apache container breaks on sections with arguments
#4722ClosedBug2005-07-01Missing config types in Config::parseConfig()
#4761ClosedBug2005-07-06Config broken in 5.1b2
#5033ClosedBug2005-08-09notice in GenericConf.php
#5367ClosedBug2005-09-12XML Rootnode Attributes aren't exported
#5598ClosedBug2005-10-04'=' in value breaks ini file
#5835ClosedBug2005-10-31Only Variables can be passed by reference
#6294ClosedBug2005-12-19PHP4.4 and 5.1 return value fixes
#6342ClosedBug2005-12-23Add the Unit tests
#6385ClosedReq2006-01-01Allow colon in ini file key
#6441ClosedBug2006-01-07true and false literals should be parsed appropriately
#6647ClosedBug1.10.52006-01-31Notice: Only variable references should be returned by reference
#6740BogusBug1.10.52006-02-10Undefined offset: 1 in /usr/share/php/Config/Container.php on line 327
#7097ClosedBug1.10.62006-03-12writeConfig incorrect when root has attributes
#7354BogusBug1.10.62006-04-10Recently upgraded my Pear::Config, and after all my applications are crashing..
#7477BogusReq1.10.62006-04-24Config.php declaration conflicts with other apps
#7544ClosedBug1.10.62006-05-02Empty attributes in ini file are being discarded
#7652ClosedBug1.10.62006-05-17wrong xml to phparray convert
#7695BogusBug2006-05-22Bug in ParseConfig
#8168Wont fixBug1.10.62006-07-08Wrong phparray result when the $new_cfg_ary has numeric keys
#8169Wont fixReq1.10.62006-07-08Need add php code in phparray result
#8357ClosedBug1.10.62006-08-04Unexpected result from IniFile when comma in use
#8572ClosedDoc1.10.72006-08-28parse comments and blanks with phparray
#9099ClosedBugCVS2006-10-19bug3137.phpt fails
#9632ClosedBugCVS2006-12-15PHPConstants missing
#10010ClosedBug1.10.92007-02-02numeric index lost when parsing subarrays
#10126BogusBug1.10.92007-02-19Ini file writeConfig converts values
#10185ClosedBug1.10.92007-02-25problem with addslashs in container "PHPArray" / method "toString"
#11184ClosedBug1.10.102007-05-31PHPArray issue with backslashes
#11435ClosedBug1.10.112007-06-25IniFile and IniCommented do not correctly quote some characters
#11827ClosedBug1.10.112007-08-13notice when using arrays (directive[]=value) in inifiles
#11846ClosedDoc1.10.112007-08-15Config::parseConfig() Possible PEAR_Error values table unfinished
#12291ClosedBug1.10.112007-10-22PEAR GenericConf newline shouldn't need a space
#12370No FeedbackBug1.10.112007-11-01Adding unwanted slashes
#12387ClosedBug1.10.112007-11-05GenericConf doesn't allow for hyphens on left-hand-side of a directive
#12388ClosedBug1.10.112007-11-06GenericConf doesn't allow whitepace to left of directive delimiter
#12495ClosedDoc2007-11-21User note that is a documentation problem
#13004BogusBug1.10.112008-01-30PEAR::Config - Character encoding is wrongly "guessed"
#13116ClosedBug1.10.112008-02-13Syntax Strict notice for references on constructors
#13669DuplicateReq1.10.112008-04-14support for reading of multiple line comments defined with /* */
#13670DuplicateReq1.10.112008-04-14support for writing of multiple line comments defined with /* */
#13791ClosedReqCVS2008-04-28Options for the PHPConstants container
#14999DuplicateBug1.10.112008-11-12Tar-files not available on server
#15001ClosedBug1.10.112008-11-12Package not found
#15964ClosedBug2009-03-01errors in test suite
#16590ClosedBug1.10.112009-09-10parseConfig phparray ignores named arrays that use numbers as name
#16656ClosedReq1.10.112009-09-29New 'linebreak' option for IniCommented container
#16724ClosedReq1.10.112009-10-22PHPConstants container should have option lowercase
#17735OpenReq1.10.112010-08-18allow Include statements
#18124ClosedBugSVN2010-12-19Saving arrays back to ini file fails
#18348OpenBug1.10.122011-03-08GenericConf serialization does not use newline option
#18357OpenBug1.10.122011-03-10XML container generates invalid XML
#18565ClosedBug1.10.122011-05-26Deprecated uses
#19078FeedbackBugUnknown2011-11-26Pear does not run - error message
#19292BogusReq1.10.122012-02-14mbiama@php.net
#19373BogusBug1.10.122012-04-04Installation crashes und Xampp
#19376DuplicateBug1.10.122012-04-08Call to undefined method Config_Container_XML::XML_Parser()
#19377ClosedBug1.10.122012-04-08Call to undefined method Config_Container_XML::XML_Parser()
#19429ClosedBug1.10.122012-05-22Unit tests are failing, please patch
#19721Wont fixBug1.10.122012-11-26Update dependency
#19756OpenReq1.10.122012-12-17Add .properties support
#20120OpenReq1.10.122013-11-05Please upgrade XML_Parser to XML_Parser2
#20187FeedbackBug1.10.122014-01-25Error reading config
#20480OpenBug1.10.122015-01-07Xml_Parser
#21172OpenBug2017-01-26not working on PHP 7.1
#23754OpenReqSVN2018-06-29Version Bump Config