Revert "bug #18908 [DependencyInjection] force enabling the external XML entity loaders (xabbuh)"
This reverts commit44f6f89308
, reversing changes made to57d6053822
.
This commit is contained in:
parent
44f6f89308
commit
91635a8054
|
@ -333,9 +333,7 @@ $imports
|
|||
EOF
|
||||
;
|
||||
|
||||
$disableEntities = libxml_disable_entity_loader(false);
|
||||
$valid = @$dom->schemaValidateSource($source);
|
||||
libxml_disable_entity_loader($disableEntities);
|
||||
|
||||
foreach ($tmpfiles as $tmpfile) {
|
||||
@unlink($tmpfile);
|
||||
|
|
|
@ -83,19 +83,6 @@ class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
$this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\SimpleXMLElement', $xml, '->parseFile() returns an SimpleXMLElement object');
|
||||
}
|
||||
|
||||
public function testLoaderTurnsOnEntityLoaderIfNecessary()
|
||||
{
|
||||
$oldValue = libxml_disable_entity_loader(true);
|
||||
|
||||
$containerBuilder = new ContainerBuilder();
|
||||
$loader = new XmlFileLoader($containerBuilder, new FileLocator(self::$fixturesPath.'/xml'));
|
||||
$loader->load('services2.xml');
|
||||
|
||||
libxml_disable_entity_loader($oldValue);
|
||||
|
||||
$this->assertTrue(count($containerBuilder->getParameterBag()->all()) > 0, 'Parameters can be read from the config file.');
|
||||
}
|
||||
|
||||
public function testLoadParameters()
|
||||
{
|
||||
$container = new ContainerBuilder();
|
||||
|
|
Reference in New Issue