public static function restore($clear = true)
    {
        if ($clear) {
            libxml_clear_errors();
        }

        libxml_use_internal_errors(self::$internalErrors);
        libxml_disable_entity_loader(self::$disableEntities);
    }
public static function restore($clear = true)
    {
        if ($clear) {
            libxml_clear_errors();
        }

        libxml_use_internal_errors(self::$internalErrors);
        libxml_disable_entity_loader(self::$disableEntities);
    }
public static function restore ( $ clear = true ) { if ( $ clear ) { libxml_clear_errors ( ) ; } libxml_use_internal_errors ( self :: $ internalErrors ) ; libxml_disable_entity_loader ( self :: $ disableEntities ) ; }
Restore error reporting.

@param bool $clear
Restore error reporting .