<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="/h/themes/default/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>Fri, 24 May 2013 09:52:31 +0000</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 22:30:28 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/6284#t42543</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
