mustangostang / spyc

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

Add multiple document support #3

Closed ghost closed 11 years ago

ghost commented 11 years ago

A simple patch to allow multiple documents in the YAML stream to be parsed correctly. Instead of returning everything in one big array, every item in the array is one document (even if there is only one document). While it is a change in behavior, it is similar to other YAML parsers such as PyYAML.

I suspect this will break a number of the tests.

mustangostang commented 11 years ago

I would like some popular opinion on whether I should merge this patch in. Please vote in the comments if you need this feature.