Syck 0.9.2

I’ve just released syck for php 0.9.2 (a parser and emitter of YAML documents. If you don’t know anything about YAML and why it is good:check my previous posts on the subject). A lot of new and tasty features ;)

First,and most important:a lot of stability and consistency fixes (previous release wasn’t properly dealing with some kinds of number-like strings and with mixed-keys arrays). This release is HIGHLY recommended to anyone who uses syck-php in production. I was using this version for several weeks as a server-to-server exchange format under heavy load and coudn’t be satisfied more.

I started to dive into object-serialization and unserialization topics. Any object which implements Serializable interface can be dumped into yaml-document now. It will be stored using !php/object::ClassName signature. And,of course,you would be able load the object afterwards. Important:at the moment of loading yaml-file,all of the classes mentioned in it have to be either declared,or be available to php’s autoload mechanism.

I also implemented loading of objects with !php/array::ClassName and !php/hash::ClassName signatures. These have to implement ArrayAccess interface. Unfortunately,I didn’t implement dumping of such objects yet. That is planned for the next releae.

As always,I am open to hear any of your comments and bug-reports.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • FriendFeed
  • Reddit
  • Tumblr
  • Twitter
Liked this post? Follow me on twitter:@jimi_dini.

  • http://endeveit.net/ endeveit

    Thanks :)
    Will be waiting for updates in debian packages ;)

  • http://efiquest.org Pavel Shevaev

    Alexey,thanks a lot,I think I’m gonna try pecl/syck in my next project. Just an offtopic question –have your ever thought on creating syck convenient bindings for C++? ;)

  • http://indeyets.pp.ru/ indeyets

    Pavel Shevaev:
    I thought about creating bindings for D ;)
    C++ is not in my fav-list these days

  • http://efiquest.org Pavel Shevaev

    Well,yeah,C++ is not that elegant as D but currently I’m(my company actually) not ready to move to D yet.

  • jordi

    Great! Regards…

  • http://cmsreview.net/ cms

    I like C++ but now only PHP.

  • http://www.talkphp.com/ Adam

    Just what I’ve been waiting for :) !

  • chris

    Any chance of windows support coming?

  • http://indeyets.pp.ru/ indeyets

    chris:well,windows-developer is required for that ;)

    Actually it is on my todo-list,but there are a lot things on it,which have higher priority

  • Martin

    Anything new about the Windows version ?

    I’m really in need of it :) Yamls file taking about 2 hours to load (all my dev data are in it!)

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.