Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 17af138

Browse filesBrowse files
committed
fixed usage of LIBXML_COMPACT as it is not always available
1 parent 9e43812 commit 17af138
Copy full SHA for 17af138

File tree

Expand file treeCollapse file tree

4 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+4
-4
lines changed

‎src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private function parseFile($file)
209209
{
210210
$dom = new \DOMDocument();
211211
libxml_use_internal_errors(true);
212-
if (!$dom->load($file, LIBXML_COMPACT)) {
212+
if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) {
213213
throw new \InvalidArgumentException(implode("\n", $this->getXmlErrors()));
214214
}
215215
$dom->validateOnParse = true;

‎src/Symfony/Component/Routing/Loader/XmlFileLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Loader/XmlFileLoader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected function loadFile($file)
152152
{
153153
$dom = new \DOMDocument();
154154
libxml_use_internal_errors(true);
155-
if (!$dom->load($file, LIBXML_COMPACT)) {
155+
if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) {
156156
throw new \InvalidArgumentException(implode("\n", $this->getXmlErrors()));
157157
}
158158
$dom->validateOnParse = true;

‎src/Symfony/Component/Translation/Loader/XliffFileLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Loader/XliffFileLoader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function parseFile($file)
5252
{
5353
$dom = new \DOMDocument();
5454
$current = libxml_use_internal_errors(true);
55-
if (!@$dom->load($file, LIBXML_COMPACT)) {
55+
if (!@$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) {
5656
throw new \RuntimeException(implode("\n", $this->getXmlErrors()));
5757
}
5858

‎src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected function parseFile($file)
176176
{
177177
$dom = new \DOMDocument();
178178
libxml_use_internal_errors(true);
179-
if (!$dom->load($file, LIBXML_COMPACT)) {
179+
if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) {
180180
throw new MappingException(implode("\n", $this->getXmlErrors()));
181181
}
182182
if (!$dom->schemaValidate(__DIR__.'/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd')) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.