Closed
Description
I think I've found a bug with YAML reference parsing. Referencing multiple times results in grabbing data below the referenced section. I'm using the Symfony YAML component from version 2.4.4 with PHP 5.4.23 on Ubuntu 12.04.
Given myfile.yaml
:
section: §ion1
x: y
different:
a: b
section: §ion2
<< : *section1
section:
<< : *section2
Code:
print_r(Yaml::parse('myfile.yaml'));
Expected output:
[section] => Array
(
[x] => y
)
[different] => Array
(
[a] => b
)
Actual output:
[section] => Array
(
[a] => b
)
[different] => Array
(
[a] => b
)
Note how [x] => y
has been replaced with [a] => b
.
Note that you get the same actual output even if you remove the line x: y
.