Issues

ZF-11608: Zend_Config_Yaml don't work properly with sfYaml parser

Issue Type: Bug Created: 2011-07-25T16:59:18.000+0000 Last Updated: 2012-05-29T15:11:46.000+0000 Status: Closed Fix version(s): Reporter: Leric Zhang (leric) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Config

  • zf-crteam-padraic
  • zf-crteam-priority

Related issues: Attachments:

Description

When using sfYaml as parse for a Zend_Config_Yaml, it won't parse embeded php in yaml config file.

In Zend_Config_Yaml::__construct(), around line 167, it loaded the content of the config file into a variable, then pass it to the yaml decode function, in this case, sfYaml::load() will not parse the embeded php instructions.

Instead, the config file's path need to be passed to the decode function, and load the file content inside the function, then it will work well with sfYaml, or other yaml parser that requires a file path rather than a yaml string.

Comments

Posted by Adam Lundrigan (adamlundrigan) on 2011-11-08T13:04:35.000+0000

Could you provide a short code sample which reproduces your issue?

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