xml_parser_free() is no longer sufficient to free the
parser resource, if it references an object and this object references that
parser resource. In this case it is necessary to additionally unset the $parser.