title: External entities not working in simplexml
body: <p>I am parsing XML using SimpleXML in PHP 5 and external entities are not working. The XML parses, but the entities just are blank. The underlying library is libxml2.</p>
  
  <p>This is the code:</p>
  
  <pre><code>libxml_disable_entity_loader(false);
  simplexml_load_file($target_file);
  </code></pre>
  
  <p>It parses the XML as expected, but doesn't resolve the external entities and seems to ignore them.</p>