From de2bef5886c9630cea327ea4ef10a95e8130ae70 Mon Sep 17 00:00:00 2001 From: Curtis Date: Mon, 30 Jun 2014 11:26:47 -0700 Subject: [PATCH] Fixed failed config schema loads due to libxml_disable_entity_loader usage. Applied CS patch. --- src/Symfony/Component/Config/Util/XmlUtils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Config/Util/XmlUtils.php b/src/Symfony/Component/Config/Util/XmlUtils.php index 71f8bf1558..b120fdf188 100644 --- a/src/Symfony/Component/Config/Util/XmlUtils.php +++ b/src/Symfony/Component/Config/Util/XmlUtils.php @@ -80,7 +80,8 @@ class XmlUtils $valid = false; } } elseif (!is_array($schemaOrCallable) && is_file((string) $schemaOrCallable)) { - $valid = @$dom->schemaValidate($schemaOrCallable); + $schemaSource = file_get_contents((string) $schemaOrCallable); + $valid = @$dom->schemaValidateSource($schemaSource); } else { libxml_use_internal_errors($internalErrors);