Issues

ZF-6876: Zend_Config and quotes (write right, read wrong)

Issue Type: Bug Created: 2009-06-01T11:08:57.000+0000 Last Updated: 2009-11-17T08:09:47.000+0000 Status: Resolved Fix version(s): Reporter: Jonas Martinez (muan) Assignee: Rob Allen (rob) Tags: - Zend_Config

Related issues: Attachments:

Description

When i use the Zend_Config with string that contains quotes, it returns a wrong value with the escape chars. Ex: some.ini

[production] text = "SOMETHING"

Using Zend_Config: $config = new Zend_Config_Ini('/path/to/ini/some.ini', 'production'); echo $config->text;

Expected: SOMETHING

Returned: SOMETHING

Comments

Posted by Rob Allen (rob) on 2009-11-17T08:09:47.000+0000

Zend_Config_Ini uses parse_ini_file to read the ini file from disk. This function doesn't support escaping double quotes.

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