Issues

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

Patch

Fixed in r24554 on trunk