<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>Support YAML literal documents</title>
  <pubDate>Tue, 07 Oct 2008 12:03:21 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6284</link>
  <atom:link rel="self" type="application/rss+xml" title="Support YAML literal documents" href="http://bugs.horde.org/ticket/6284/rss" />
  <description>Support YAML literal documents</description>

  
  
  <item>
   <title>Explanation from Alexei Zakhlestin:

I noticed, that you l</title>
   <description>Explanation from Alexei Zakhlestin:

I noticed, that you limit yaml-documents only to the ones which provide arrays, which is not always true. yaml-document can consist of the single literal (string, null, number, etc) and still be valid. Currently, whenever syck_load() returns anything but array, you force result to be empty array().

Simple test-case:

&lt;?php

require 'Horde/Yaml.php';

$doc = 'test';

var_dump(syck_load($doc));
var_dump(Horde_Yaml::load($doc));
</description>
   <pubDate>Mon, 18 Feb 2008 17:30:28 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6284#t42543</link>
  </item>
  

 </channel>
</rss>
