Issues

ZF-10095: Zend_Config_Writer_Ini does not write properly to global namespace

Issue Type: Bug Created: 2010-07-02T02:01:49.000+0000 Last Updated: 2010-08-21T07:00:54.000+0000 Status: Resolved Fix version(s): - 1.10.8 (25/Aug/10)

Reporter: Mayor Brain (brainny2002) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Config

Related issues: - ZF-6289

Attachments:

Description

If a config param is declared in the global namespace, after a section, Zend_Config_Writer_Ini does not write properly to the global namespace, instead, the param becomes part of the last section in the ini.

For example


sample config (sample.ini)

user_locale = "en_GB" auth_mech = "DatabaseAuth" [license] key = "DC_CAAP"

type = "PRO"

code

theme = "Classic"; $item = new Zend\_Config\_Writer\_Ini(array('config' => $config, 'filename' => 'sample.ini')); $item->write(); ?>

output (sample.ini)

user_locale = "en_GB" auth_mech = "DatabaseAuth" [license] key = "DC_CAAP" type = "PRO" theme = "Classic"


expected output

user_locale = "en_GB" auth_mech = "DatabaseAuth" theme = "Classic" [license] key = "DC_CAAP" type = "PRO"


Comments

Posted by Ramon Henrique Ornelas (ramon) on 2010-07-02T10:23:18.000+0000

This issue already was resolved in trunk see ZF-6289 not applied in branch release-1.10.

Posted by Ramon Henrique Ornelas (ramon) on 2010-08-21T07:00:54.000+0000

Applied to branch release-1.10 in r22869.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts