Page 2 of 2
Posted: Thu Dec 07, 2006 5:40 am
by Ollie Saunders
Another idea I had that I wanted to bounce off you guys was using a separate table for each node type, as each have slightly different needs: Like attributes always have a name/value pair while elements never have a value, but always have a name... and cdata sections never ave a name, but always a value... etc...
Seems logical to me, but I'm a little too deep in it to be completely objective
Sure, why not.
Posted: Thu Dec 07, 2006 6:59 am
by Jenk
You're getting the errors because the objects are being 'shutdown' and you are trying to reference them.
It's sometimes funny behaviour, like you are experiencing.
Have a look at using register_shutdown_function();
Posted: Thu Dec 07, 2006 9:56 am
by Kieran Huggins
Thanks for the tip Jenk - I've removed most of my need for the destruct method at this point, but I might use register_shutdown_function() for object serialization when I get to the optimization stage.
Cheers,
Kieran