you fixed the root cause with empty xml. but should it not still use either `@` or try..catch in case there are other circumstances where an error is raised. the idea was that libxml_disable_entity_loader is reset to its previous state in any way, wasn't it?