Yesterday I wrote about updating PHP’s YAML-parsing extension — Syck.
Some updates:
- I believe, I fixed all memory leaks, it had (They were quite large, must tell you)
- Why (Syck’s author) told me, that there will be new release in a month or so, which will include my patches
Until then, I encourage you to build php-extension using sources from subversion
Instructions (for those who need them):
- Install Syck-library using your favorite package-manager (stable 0.55 version will do)
- svn export http://code.whytheluckystiff.net/svn/syck/trunk/ext/php/ syck-php
- cd syck-php
- phpize
- ./configure
- make
- sudo make install
- add extension=syck.so to your php.ini file
- restart apache or fastcgi processes

[...] You can check out the log of the discussion for his entire talk (covering topics like what YAML is, where to get more information on it, some of its features, and a mention of the Syck library for parsing it). « Zend Developer Zone: Two Security Tips – Naming Scheme & Input Filtering [...]
Nice work!
Is there a way do the opposite, that is: serialize PHP structures into YAML?
As I can geuss from the source there is jsut syck_load for now, would it be tiresome to add a save method?
Cheers,
Alex
Aljoscha: that’s in the plans
[...] take a look at my previous yaml-post for installation instructions. [...]