mustangostang / spyc

A simple YAML loader/dumper class for PHP
MIT License
707 stars 207 forks source link

Fixed parsing problem when using syck extension. #21

Closed castor4bit closed 11 years ago

castor4bit commented 11 years ago

When using syck extension and load from a string, syck_load() throws SyckException because the argument is single-line.

repro:

require_once 'Spyc.php';

$yaml = <<<END_YAML
example:
  foo: bar
  bar: baz
END_YAML;

$spyc = new Spyc();
$spyc->setting_use_syck_is_possible = true;
$spyc->load($yaml);     // SyckException