Problem/Motivation

Updating to php 8 raises a warning

Message Deprecated function: Function libxml_disable_entity_loader() is deprecated in Drupal\views_xml_backend\Plugin\views\query\Xml->createDomDocument() (line 573 of /app/docroot/modules/contrib/views_xml_backend/src/Plugin/views/query/Xml.php)

Steps to reproduce

Update the server to use php 8 and later

Proposed resolution

On code that only runs on PHP 8.0 and later, it is now safe to remove all function calls.
Call libxml_disable_entity_loader conditionally on php versions lower than 8

CommentFileSizeAuthor
#2 3343432-1.patch798 byteschristos diamantis

Comments

Christos Diamantis created an issue. See original summary.

christos diamantis’s picture

StatusFileSize
new798 bytes
christos diamantis’s picture

Issue summary: View changes
christos diamantis’s picture

avpaderno’s picture

Title: PHP 8.0: libxml_disable_entity_loader function is deprecated » libxml_disable_entity_loader() is deprecated
Version: 8.x-1.0-alpha4 » 8.x-1.x-dev
Status: Active » Needs review
Issue tags: +PHP 8.0

rjjakes’s picture

Status: Needs review » Fixed

Pushed to 8.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.