[Tickets #6284] Support YAML literal documents

bugs at horde.org bugs at horde.org
Mon Feb 18 22:30:28 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6284
-----------------------------------------------------------------------
 Ticket             | 6284
 Created By         | Chuck Hagenbuch <chuck at horde.org>
 Summary            | Support YAML literal documents
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Enhancement
 State              | Accepted
 Priority           | 1. Low
 Milestone          | 
 Patch              | 
 Owners             | 
-----------------------------------------------------------------------


Chuck Hagenbuch <chuck at horde.org> (2008-02-18 17:30) wrote:

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:

<?php

require 'Horde/Yaml.php';

$doc = 'test';

var_dump(syck_load($doc));
var_dump(Horde_Yaml::load($doc));




More information about the bugs mailing list