Posted on May 29, 2009 by
Happy Giraffe
What steps will reproduce the problem? 1. echo Spyc::YAMLdump(Array('item1','item2','item3'))
the expected output:
- item1
- item2
- item3
What do you see instead?
- item1 1: item2 2: item3
What version of the product are you using? On what operating system?
0.4.1 @ Ubuntu 9.04
I fixed this in function dump lines 186-189
// Start at the base of the array and move through it. $previous_key = -1; foreach ($array as $key => $value) { $string .= $this->_yamlize($key,$value,0,$previous_key); $previous_key = $key; }
Comment #1
Posted on May 31, 2009 by Happy PandaMarco, thanks. Your bugfix is included in Spyc 0.4.2.
Status: Fixed
Labels:
Type-Defect
Priority-Medium