Issues

ZF-11702: [PATCH] Zend_Config_Yaml does not parse constants in array format

Issue Type: Bug Created: 2011-08-27T19:30:57.000+0000 Last Updated: 2011-11-06T10:32:58.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)

Reporter: Kyle Spraggs (spiffyjr) Assignee: Rob Allen (rob) Tags: - Zend_Config

  • Zend_Config_Yaml

Related issues: Attachments: - zf-11702.diff

Description

Take the following yaml:

<pre class="literal">
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:

<pre class="literal">
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

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