When using libxml_use_internal_errors(true), errors pile up in an internal error handler. When not
resetting errors using libxml_clear_errors(),
subsequent libxml usages may fail.
The patch properly restores the previous libxml
error handler value and clears errors.
When using libxml_use_internal_errors(true), errors pile up in an internal error handler. When not resetting errors using libxml_clear_errors(), subsequent libxml usages may fail.
The patch properly restores the previous libxml error handler value and clears errors.