ZF-5630: Zend_Config_Ini examples are wrong
In several places you see this example:
$options['nestSeparator'] = ':'; $config = new Zend_Config_Ini('/path/to/config.ini', 'staging', $options);
Followed by this example ini code:
; Production site configuration data [production] webhost = www.example.com database.adapter = pdo_mysql database.params.host = db.example.com database.params.username = dbuser database.params.password = secret database.params.dbname = dbname
However, when the user follows this example literally, the resulting $config object is not correctly populated. For instance:
Results in Notice: Trying to get property of non-object in
Changing the nestSeparator character to a dot (which is the character used in the ini sample above, results in a correctly populated config object.
This is prevelant in these pages:
For new users this could be very frustrating and lead them to believe it's a bug in Zend code.