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
- [x] a bug report?
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the current behavior?
It is throwing an Allowed memory size of bytes exhausted exception
What are the steps to reproduce?
Here is an Excel file to reproduce this behavior with sample.xlsx
Not that it matters, but where is this bogus data coming from? Not one of the gazillion cells identified in the "ignore errors" range even exists.
I think ignored errors should not be processed if you specify readDataOnly. I will make that change. That should fix the memory problem for your sheet, and also greatly reduce the run time.
If readDataOnly is not an option, I also think ignored errors should not be processed for cells that don't exist. I will make that change. That should fix the memory problem for your sheet. It will, unfortunately, not have much effect on run time - we will still need to check the existence of each of the cells.
oleibman
added a commit
to oleibman/PhpSpreadsheet
that referenced
this issue
Feb 20, 2025
This is:
What is the current behavior?
It is throwing an
Allowed memory size of bytes exhausted
exceptionWhat are the steps to reproduce?
Here is an Excel file to reproduce this behavior with sample.xlsx
What features do you think are causing the issue
PhpSpreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php
Lines 2381 to 2385 in 82ac7ab
The
processIgnoredErrors
is iteratingIT (254)
upto62680
rowsDoes an issue affect all spreadsheet file formats? If not, which formats are affected?
At least xlsx
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet 1.29.6 upto 4.0
PHP 7.4 | 8.3
The text was updated successfully, but these errors were encountered: