You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: