Managed the PHP-FPM scenario for PHP BUG #64938

Because of the PHP BUG #64938 (https://bugs.php.net/bug.php?id=64938) we cannot use libxml_disable_entity_loader() with PHP-FPM (not thread-safe).