Disabling the libxml entity loader will globally break file loading
Created by: samsonradu
Disabling the entity loader in the Introspector will globally break the load()
function:
libxml_disable_entity_loader(true);
...
$xsl = new \DOMDocument();
$xsl->load(__DIR__ . '/transform.xsl');
The above will throw an error:
failed to load external entity "/path/to/transform.xsl"
Perhaps it would be good to reset the entity loader to its initial value after loading the XML string.