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

Unable to open source data #864

Open
VoigtK opened this issue Feb 3, 2022 · 0 comments
Open

Unable to open source data #864

VoigtK opened this issue Feb 3, 2022 · 0 comments

Comments

@VoigtK
Copy link

VoigtK commented Feb 3, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant