8000 Revert "bug #18908 [DependencyInjection] force enabling the external … · symfony/symfony@91635a8 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 91635a8

Browse files
Revert "bug #18908 [DependencyInjection] force enabling the external XML entity loaders (xabbuh)"
This reverts commit 44f6f89, reversing changes made to 57d6053.
1 parent 44f6f89 commit 91635a8

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,7 @@ public function validateSchema(\DOMDocument $dom)
333333
EOF
334334
;
335335

336-
$disableEntities = libxml_disable_entity_loader(false);
337336
$valid = @$dom->schemaValidateSource($source);
338-
libxml_disable_entity_loader($disableEntities);
339337

340338
foreach ($tmpfiles as $tmpfile) {
341339
@unlink($tmpfile);

src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,6 @@ public function testParseFile()
8383
$this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\SimpleXMLElement', $xml, '->parseFile() returns an SimpleXMLElement object');
8484
}
8585

86-
public function testLoaderTurnsOnEntityLoaderIfNecessary()
87-
{
88-
$oldValue = libxml_disable_entity_loader(true);
89-
90-
$containerBuilder = new ContainerBuilder();
91-
$loader = new XmlFileLoader($containerBuilder, new FileLocator(self::$fixturesPath.'/xml'));
92-
$loader->load('services2.xml');
93-
94-
libxml_disable_entity_loader($oldValue);
95-
96-
$this->assertTrue(count($containerBuilder->getParameterBag()->all()) > 0, 'Parameters can be read from the config file.');
97-
}
98-
9986
public function testLoadParameters()
10087
{
10188
$container = new ContainerBuilder();

0 commit comments

Comments
 (0)
0