Function libxml_disable_entity_loader is deprecated on PHP8

Created on 7 November 2022, about 2 years ago
Updated 4 July 2023, over 1 year ago

Problem/Motivation

Function libxml_disable_entity_loader throws deprecation warning on PHP8.

Steps to reproduce

Install Feeds and this module in D7.
Create a feed with parser, "XPath XML parser"
Run the import
Watchdog shows warning
Deprecated function: Function libxml_disable_entity_loader() is deprecated in FeedsXPathParserBase->errorStop() (line 598 of feeds_xpathparser/FeedsXPathParserBase.inc).

Proposed resolution

Fix it the same way they did on feeds_ex by adding check for PHP version: https://www.drupal.org/project/feeds_ex/issues/3257376 β†’

Remaining tasks


Patch attached.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada darkodev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024