merged branch instaclick/ignore-validation-exception (PR #4748)

Commits
-------

383efdf Ignore validation exception so we get a more informative error message from $this->getXmlErrors().

Discussion
----------

Ignore validation exception so we get a more informative error message

Ignore validation exception so we get a more informative error message from $this->getXmlErrors().

This is consistent with https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Translation/Loader/XliffFileLoader.php#L82
This commit is contained in:
Fabien Potencier 2012-07-04 18:27:50 +02:00
commit 63463c4782

View File

@ -345,7 +345,7 @@ EOF
;
$current = libxml_use_internal_errors(true);
$valid = $dom->schemaValidateSource($source);
$valid = @$dom->schemaValidateSource($source);
foreach ($tmpfiles as $tmpfile) {
@unlink($tmpfile);
}