Also, I just discovered that
DOMDocument
won't release its memory until the script terminates, even if you burn all references to it (in 5.4 at least). Anyone come across this before/got a solution? There are a
couple of
questions relating to it but no solutions :-(