ZF-11702: [PATCH] Zend_Config_Yaml does not parse constants in array format
Description
Take the following yaml:
production:
test:
- APPLICATION_PATH
When parsed through Zend_Config_Yaml the expected result would be the APPLICATION_PATH. Instead, APPLICATION_PATH is output directly even with parse constants enabled.
Patch below:
339c339,343
< $config[] = substr($line, 2);
---
> $value = substr($line, 2);
> if (!self::$_ignoreConstants) {
> $value = self::_replaceConstants($value);
> }
> $config[] = $value;
Comments
Posted by Rob Allen (rob) on 2011-11-06T10:24:09.000+0000
Patch
Posted by Rob Allen (rob) on 2011-11-06T10:32:58.000+0000
Fixed in r24554 on trunk