Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.
This repository was archived by the owner on May 26, 2022. It is now read-only.

Unable to open source data #864

@VoigtK

Description

@VoigtK

I'm using spout for quite a while now. After upgrading php, and with that libxml, there is a huge issue.
Php >= 8 and/or libxml >= 2.9.0 by default set libxml_disable_entity_loader(true);

This leads to the following error with any XLSX file in ReaderAbstract.php at line 130:
Could not open xxx for reading! (Warning: XMLReader::open(): Unable to open source data)

Using libxml_disable_entity_loader(false); should not be an option at all as it is deprecated and opens up to XXE attacks.

Is there any other solution for this error?

EDIT:
I've made a protptye for demonstration:
Demo
Disabling the entity loader in line 58, as this is the php default, throws an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions