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

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

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