OK, is it done yet?

No, it isn't.
Made major progress today (Saturday) though, actually got it to print some output to the screen without barfing garbage, segfaulting, or just doing "nothing"

talk about your steep learning curves, let's just say that putting one of these together is not intuitive. As usual, one must absorb some pain, think I'm over the hump now though, should make mucho progresso tonight. Will keep u posted, patience is a virtue

Cheers,
td
[edit]
BTW, I burned a hell of a lot of time on this today because, as I posted earlier I was using;
CREATE FUNCTION phpserialize RETURNS STRING SONAME 'libmyphpserialize.so';
This is for a normal function, I wanted an aggregate function so the command I needed was;
CREATE AGGREGATE FUNCTION phpserialize RETURNS STRING SONAME 'libmyphpserialize.so';
It makes a hell of a difference and confused the hell out of me!
Oh, and sorry for the thread hijacking.
[/edit]