Hi Symfony users, I recently began doing some development using the Symfony 1.4 framework, which I have found to be very well designed and helpful. However, I ran across a problem recently, and would really appreciate it if someone can help me with it.
There appears to be a missed implementation (or I may have simply misunderstood the YAML specification), in sfYAML parser, dealing with multi-lined Flow Sequence declarations. I'm trying to define an array with: --- [ apple, orange, ] ... As opposed to: --- [ apple, orange] ... The multi-line syntax is useful when the array/sequence gets large. According to the YAML spec, example 7.14, the former seems to be an allowed expression: http://www.yaml.org/spec/1.2/spec.html#id2790320 Another reference can be found here: http://en.wikipedia.org/wiki/User:Baxter.brad/Drafts/YAML_Tutorial_and_Style_Guide#Flow_Sequences However, when I use the sfYAML parser, rev. 32519, http://svn.symfony-project.com/components/yaml/branches/1.0/lib, it throws an exception. After some digging, I found that the problem is caused by line 341, sfYAMLParser.php, where "\n" is used as the implode glue: return implode("\n", $data); This can be fixed by replacing it with a condition check for the glue character: $glue = ( $data[0][0] == "[" || $data[0][0] == "{" ) ? "" : "\n"; return implode($glue, $data); Given that I have very little experience with the Symfony framework, can someone please kindly let me know if I had simply misunderstood the syntax? Thank you for your time! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en